SDL 3.0
|
#include <SDL3/SDL_stdinc.h>
#include <SDL3/SDL_error.h>
#include <SDL3/SDL_video.h>
#include <SDL3/SDL_begin_code.h>
#include <SDL3/SDL_close_code.h>
Go to the source code of this file.
Data Structures | |
struct | SDL_Finger |
Macros | |
#define | SDL_TOUCH_MOUSEID ((SDL_MouseID)-1) |
#define | SDL_MOUSE_TOUCHID ((SDL_TouchID)-1) |
Typedefs | |
typedef Uint64 | SDL_TouchID |
typedef Uint64 | SDL_FingerID |
Enumerations | |
enum | SDL_TouchDeviceType { SDL_TOUCH_DEVICE_INVALID = -1 , SDL_TOUCH_DEVICE_DIRECT , SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE , SDL_TOUCH_DEVICE_INDIRECT_RELATIVE } |
Functions | |
SDL_TouchID * | SDL_GetTouchDevices (int *count) |
const char * | SDL_GetTouchDeviceName (SDL_TouchID touchID) |
SDL_TouchDeviceType | SDL_GetTouchDeviceType (SDL_TouchID touchID) |
int | SDL_GetNumTouchFingers (SDL_TouchID touchID) |
SDL_Finger * | SDL_GetTouchFinger (SDL_TouchID touchID, int index) |
Include file for SDL touch event handling.
Definition in file SDL_touch.h.
#define SDL_MOUSE_TOUCHID ((SDL_TouchID)-1) |
Definition at line 64 of file SDL_touch.h.
#define SDL_TOUCH_MOUSEID ((SDL_MouseID)-1) |
Definition at line 61 of file SDL_touch.h.
typedef Uint64 SDL_FingerID |
Definition at line 42 of file SDL_touch.h.
typedef Uint64 SDL_TouchID |
Definition at line 41 of file SDL_touch.h.
enum SDL_TouchDeviceType |
Enumerator | |
---|---|
SDL_TOUCH_DEVICE_INVALID | |
SDL_TOUCH_DEVICE_DIRECT | |
SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE | |
SDL_TOUCH_DEVICE_INDIRECT_RELATIVE |
Definition at line 44 of file SDL_touch.h.
|
extern |
Get the number of active fingers for a given touch device.
touchID | the ID of a touch device |
|
extern |
Get the touch device name as reported from the driver.
You do not own the returned string, do not modify or free it.
touchID | the touch device instance ID. |
|
extern |
Get a list of registered touch devices.
On some platforms SDL first sees the touch device if it was actually used. Therefore the returned list might be empty, although devices are available. After using all devices at least once the number will be correct.
This was fixed for Android in SDL 2.0.1.
count | a pointer filled in with the number of devices returned, can be NULL. |
|
extern |
Get the type of the given touch device.
touchID | the ID of a touch device |
|
extern |
Get the finger object for specified touch device ID and finger index.
The returned resource is owned by SDL and should not be deallocated.
touchID | the ID of the requested touch device |
index | the index of the requested finger |