Skip to content

Instantly share code, notes, and snippets.

@justinribeiro
Created April 10, 2012 22:46
Show Gist options
  • Save justinribeiro/2355235 to your computer and use it in GitHub Desktop.
Save justinribeiro/2355235 to your computer and use it in GitHub Desktop.
Modernizr test for npTuioClient
//
// Fast test for npTuioClient plugin https://github.com/fajran/npTuioClient
// Tested with PQ Labs touch overlay devices
//
// Chances are good if you use this, you'll want the Boris' MagicTouch
// touch api polyfill: https://github.com/borismus/MagicTouch
//
Modernizr.addTest('tuio', function () {
return ((typeof navigator.plugins != "undefined" && typeof navigator.plugins["Tuio Client browser plugin"] == "object"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment