nsdl2/sdl2inc/touch

Search:
Group by:

Touch event definitions.

Types

Finger {.final, pure.} = object
  id*: FingerID
  x*: cfloat
  y*: cfloat
  pressure*: cfloat
FingerID = int64
TouchDeviceType {.size: 4.} = enum
  TOUCH_DEVICE_INVALID = -1, TOUCH_DEVICE_DIRECT,
  TOUCH_DEVICE_INDIRECT_ABSOLUTE, TOUCH_DEVICE_INDIRECT_RELATIVE
TouchID = int64

Consts

MOUSE_TOUCHID = -1'i64
Touch ID for touch events simulated with mouse input.
TOUCH_MOUSEID = 4294967295
Device ID for mouse events simulated with touch input.