Skip to content

CF_Touch

Category: input
GitHub: cute_input.h


Represents a single touch event on the device.

Struct Members Description
uint64_t id A unique identifier for every touch event.
float x The x-position of the touch event. Normalized from [0,1], where [0,0] is the top-left corner.
float y The y-position of the touch event. Normalized from [0,1], where [0,0] is the top-left corner.
float pressure A number from [0,1] representing the touch pressure.

cf_touch_get
cf_touch_get_all