UNPKG
blob2d
Version:
latest (0.4.0)
0.4.0
0.3.1
0.3.0
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Typed Modular 2D Game Engine for Web
github.com/bartoszlorek/blob2d
bartoszlorek/blob2d
blob2d
/
src
/
utils
/
device.ts
4 lines
(3 loc)
•
108 B
text/typescript
View Raw
1
2
3
4
export
function
isTouchDevice
(
) {
return
Boolean
(
'ontouchstart'
in
window
|| navigator.
maxTouchPoints
); }