Skip to content

Pen-input cordova plugin. Dispatch data through javascript events.

License

Notifications You must be signed in to change notification settings

IcoDeveloper/cordova-plugin-spen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova plugin - S Pen event dispatcher

This plugin capture s pen events, and dispatch them to javascript via events.

This is a huge rewrite based on Breezeemr's work.

Tested with the last Samsung Galaxy Note 10.1 (2014 Edition)

This plugin grabs coordinates, pressure and time of pen events.

Installation and usage

To install this plugin, follow the Command-line Interface Guide.

This should looks like :

cordova plugin add https://github.com/danturi/cordova-plugin-spen.git

From the javascript, initialize the plugin using the following command :

SpenPlugin.addEvents();

Add the event listeners using the following commands:

document.addEventListener("ACTION_DOWN", function(event) {});
document.addEventListener("ACTION_MOVE", function(event) {});
document.addEventListener("ACTION_UP", function(event) {});

About

Pen-input cordova plugin. Dispatch data through javascript events.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 91.9%
  • JavaScript 8.1%