This plugin capture s pen events, and dispatch them to javascript via events.
This is a huge rewrite based on Breezeemr's work.
Currently using S Pen SDK 2.3 (more info here).
To install this plugin, follow the Command-line Interface Guide.
This should looks like :
cordova plugin add https://github.com/jmcouillard/cordova-plugin-spen.git
From the javascript, initialize the plugin using the following command :
window.SpenPlugin.addEvents(successCallback, failCallback);
Here are a few tips to help developpement of this plugin.
adb logcat -s "Spen"
- Grab and send pressure
- Add relative position values (relX and relY), which will be floating numbers between 0 and 1.
- Add hover listener using
setSPenHoverListener(), using this approach.