Input event structure for thread-safe event queue.
| 30 | |
| 31 | |
| 32 | class PagerInputEvent(Structure): |
| 33 | """Input event structure for thread-safe event queue.""" |
| 34 | _fields_ = [ |
| 35 | ("button", c_uint8), # Which button (single bit from PBTN_* bitmask) |
| 36 | ("type", c_int), # Event type (PAGER_EVENT_*) |
| 37 | ("timestamp", c_uint32), # When event occurred (ms since init) |
| 38 | ] |
| 39 | |
| 40 | |
| 41 | # Event types for PagerInputEvent |