GlassTouch

Plugin to add touch events from Google Glass to your Cordova Application
Ross Gerbasi0.0.15
platforms: android
$ cordova plugin add com.rossgerbasi.cordova.glass.touch

Cordova Glass Touch Plugin


This plugin will not get further updates as it has been merged into the Cordova Glass Plugin that contains all the same features plus voice triggering, voice prompting and gesture event processing.


This plugin adds basic touch events from the Google Glass Touchpad to your Cordova based application. If you need greater gesture support then basic touch events you will then want to look at the CordovaGlassGesture Plugin.

Events

  • touchstart
  • touchend

Usage

Add plugin via Node

cordova plugin add https://github.com/aphex/cordova-glass-touch

Add an event listener to the document of your web application

document.addEventListener('touchstart', 
    function() {
        console.log('onTouchStart');
    }
);