Skip to content

About

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

Resources

Stars

1 star

Watchers

1 watching

Forks

 
 

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Currently using S Pen SDK 2.3 (more info here).

Installation and usage

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);

Development

Here are a few tips to help developpement of this plugin.

View emulator logs related to the plugin

adb logcat -s "Spen"

Todos

  • 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.

About

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

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages