sdl.touch

SDL Touch Handling

Members

Aliases

SDL_FingerID
alias SDL_FingerID = Uint64

A unique ID for a single finger on a touch device.

SDL_TouchID
alias SDL_TouchID = Uint64

A unique ID for a touch device.

Enums

SDL_TouchDeviceType
enum SDL_TouchDeviceType

An enum that describes the type of a touch device.

Functions

SDL_GetTouchDeviceName
const(char)* SDL_GetTouchDeviceName(SDL_TouchID touchID)

Get the touch device name as reported from the driver.

SDL_GetTouchDeviceType
SDL_TouchDeviceType SDL_GetTouchDeviceType(SDL_TouchID touchID)

Get the type of the given touch device.

SDL_GetTouchDevices
SDL_TouchID* SDL_GetTouchDevices(int* count)

Get a list of registered touch devices.

SDL_GetTouchFingers
SDL_Finger** SDL_GetTouchFingers(SDL_TouchID touchID, int* count)

Get a list of active fingers for a given touch device.

Structs

SDL_Finger
struct SDL_Finger

Data about a single finger in a multitouch event.

Variables

SDL_MOUSE_TOUCHID
enum SDL_TouchID SDL_MOUSE_TOUCHID;

The SDL_TouchID for touch events simulated with mouse input.

SDL_TOUCH_MOUSEID
enum SDL_MouseID SDL_TOUCH_MOUSEID;

The SDL_MouseID for mouse events simulated with touch input.

See Also

Meta

License

Subject to the terms of the Zlib License, as written in the LICENSE file.

Authors

Luna Nielsen