World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл SDL_touch.h

См. исходные тексты.

Классы

struct  SDL_Finger
 

Определения типов

typedef Sint64 SDL_TouchID
 
typedef Sint64 SDL_FingerID
 
typedef struct SDL_Finger SDL_Finger
 

Перечисления

enum  SDL_TouchDeviceType { SDL_TOUCH_DEVICE_INVALID = -1, SDL_TOUCH_DEVICE_DIRECT, SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE, SDL_TOUCH_DEVICE_INDIRECT_RELATIVE }
 

Функции

DECLSPEC int SDLCALL SDL_GetNumTouchDevices (void)
 Get the number of registered touch devices. Подробнее...
 
DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice (int index)
 Get the touch ID with the given index, or 0 if the index is invalid. Подробнее...
 
DECLSPEC SDL_TouchDeviceType SDLCALL SDL_GetTouchDeviceType (SDL_TouchID touchID)
 Get the type of the given touch device. Подробнее...
 
DECLSPEC int SDLCALL SDL_GetNumTouchFingers (SDL_TouchID touchID)
 Get the number of active fingers for a given touch device. Подробнее...
 
DECLSPEC SDL_Finger *SDLCALL SDL_GetTouchFinger (SDL_TouchID touchID, int index)
 Get the finger object of the given touch, with the given index. Подробнее...
 

Подробное описание

Include file for SDL touch event handling.

См. определение в файле SDL_touch.h

Типы

◆ SDL_TouchID

См. определение в файле SDL_touch.h строка 41

◆ SDL_FingerID

См. определение в файле SDL_touch.h строка 42

◆ SDL_Finger

typedef struct SDL_Finger SDL_Finger

Перечисления

◆ SDL_TouchDeviceType

Элементы перечислений
SDL_TOUCH_DEVICE_INVALID 
SDL_TOUCH_DEVICE_DIRECT 
SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE 
SDL_TOUCH_DEVICE_INDIRECT_RELATIVE 

См. определение в файле SDL_touch.h строка 44

45 {
47  SDL_TOUCH_DEVICE_DIRECT, /* touch screen with window-relative coordinates */
48  SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE, /* trackpad with absolute device coordinates */
49  SDL_TOUCH_DEVICE_INDIRECT_RELATIVE /* trackpad with screen cursor-relative coordinates */

Функции

◆ SDL_GetNumTouchDevices()

DECLSPEC int SDLCALL SDL_GetNumTouchDevices ( void  )

Get the number of registered touch devices.

◆ SDL_GetTouchDevice()

DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice ( int  index)

Get the touch ID with the given index, or 0 if the index is invalid.

◆ SDL_GetTouchDeviceType()

DECLSPEC SDL_TouchDeviceType SDLCALL SDL_GetTouchDeviceType ( SDL_TouchID  touchID)

Get the type of the given touch device.

◆ SDL_GetNumTouchFingers()

DECLSPEC int SDLCALL SDL_GetNumTouchFingers ( SDL_TouchID  touchID)

Get the number of active fingers for a given touch device.

◆ SDL_GetTouchFinger()

DECLSPEC SDL_Finger* SDLCALL SDL_GetTouchFinger ( SDL_TouchID  touchID,
int  index 
)

Get the finger object of the given touch, with the given index.

SDL_TOUCH_DEVICE_DIRECT
@ SDL_TOUCH_DEVICE_DIRECT
Definition: SDL_touch.h:47
SDL_TOUCH_DEVICE_INVALID
@ SDL_TOUCH_DEVICE_INVALID
Definition: SDL_touch.h:46
SDL_TOUCH_DEVICE_INDIRECT_RELATIVE
@ SDL_TOUCH_DEVICE_INDIRECT_RELATIVE
Definition: SDL_touch.h:49
SDL_TouchDeviceType
SDL_TouchDeviceType
Definition: SDL_touch.h:44
SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE
@ SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE
Definition: SDL_touch.h:48