0.0.8 • Published 2 years ago

multitouch v0.0.8

Weekly downloads
2
License
Unlicense
Repository
github
Last release
2 years ago

multitouch

read touch pointers from a sharp signage tpc-ic multitouch usb screen bezel via node-hid.

usage

var multitouch = require("multitouch");

multitouch().on("data", function(data){
	
	console.log(data);
	
});

data format

[ 
	<bool touching>, // true if touching
	<int pointerid>, // 0-49, id of pointer
	<int x>,         // 0-15360, from left
	<int y>,         // 0-8640, from top
	<int a>,         // 0-255, probably area or intensity
	<int b>,         // 0-3, probably area or intensity
	<int n>,         // 1-50, total number of current pointers
	<int s>,         // 0-~9000, sequential number
	<int t>,         // unix offset timestamp
 ]

events

data

raw pointer data

start

pointer touching changed to true

end

pointer touching changed to false

pointers

array of all pointers

raw

raw driver data

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

3 years ago

0.0.5

4 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago