libretro.api.input.pointer¶
Pointer (touch/pen) input types and multi-touch state.
Corresponds to the RETRO_DEVICE_ID_POINTER_* constants in libretro.h.
Classes
Input IDs for the pointer device. |
|
A single pointer contact point. |
|
Snapshot of pointer (multi-touch) state. |
- class DeviceIdPointer[source]¶
Bases:
IntEnumInput IDs for the pointer device.
Corresponds to the
RETRO_DEVICE_ID_POINTER_*constants inlibretro.h.>>> from libretro.api.input import DeviceIdPointer >>> DeviceIdPointer.PRESSED <DeviceIdPointer.PRESSED: 2>
- X = 0¶
- Y = 1¶
- PRESSED = 2¶
- COUNT = 3¶
- IS_OFFSCREEN = 15¶
- __new__(value)¶
- classmethod value in self¶
Return True if value is in cls.
value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)
- classmethod self[name]¶
Return the member matching name.
- __init__()¶
- classmethod iter(self)¶
Return members in definition order.
- classmethod len(self)¶
Return the number of members (no aliases)