Created
April 10, 2012 22:46
-
-
Save justinribeiro/2355235 to your computer and use it in GitHub Desktop.
Modernizr test for npTuioClient
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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