UNPKG
@kmamal/sdl
Version:
latest (0.11.13)
0.11.13
0.11.12
0.11.11
0.11.10
0.11.9
0.11.8
0.11.7
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.14
0.10.13
0.10.12
0.10.11
0.10.10
0.10.9
0.10.7
0.10.6
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.9.6-1
0.9.6-0
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.4
0.8.3
0.8.0
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.2
0.5.0
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
0.0.19-alpha.0
0.0.18
0.0.16
0.0.15
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
SDL bindings for Node.js
github.com/kmamal/node-sdl
kmamal/node-sdl
@kmamal/sdl
/
src
/
javascript
/
touch
/
index.js
16 lines
(10 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const
Globals = require(
'../globals'
)
const
Bindings = require(
'../bindings'
) Globals.touchDevices = Bindings.touch_getDevices()
const
touch = {
get
devices
()
{ Globals.events.poll()
return
Globals.touchDevices }, } module.exports = { touch }