The OpenD Programming Language

cef_touch_event_t

Structure representing touch event information.

Members

Variables

id
int id;

Id of a touch point. Must be unique per touch, can be any number except -1. Note that a maximum of 16 concurrent touches will be tracked; touches beyond that will be ignored.

modifiers
uint modifiers;

Bit flags describing any pressed modifier keys. See cef_event_flags_t for values.

pointer_type
cef_pointer_type_t pointer_type;

The device type that caused the event.

pressure
float pressure;

The normalized pressure of the pointer input in the range of [0,1]. Set to 0 if not applicable.

radius_x
float radius_x;

X radius in pixels. Set to 0 if not applicable.

radius_y
float radius_y;

Y radius in pixels. Set to 0 if not applicable.

rotation_angle
float rotation_angle;

Rotation angle in radians. Set to 0 if not applicable.

type
cef_touch_event_type_t type;

The state of the touch point. Touches begin with one CEF_TET_PRESSED event followed by zero or more CEF_TET_MOVED events and finally one CEF_TET_RELEASED or CEF_TET_CANCELLED event. Events not respecting this order will be ignored.

x
float x;

X coordinate relative to the left side of the view.

y
float y;

Y coordinate relative to the top side of the view.

Meta