UNPKG

blob2d

Version:

Typed Modular 2D Game Engine for Web

4 lines (3 loc) 108 B
export function isTouchDevice() { return Boolean('ontouchstart' in window || navigator.maxTouchPoints); }