51 lines
988 B
Python
51 lines
988 B
Python
import ctypes
|
|
from .internal import _SDL
|
|
|
|
class Event(object):
|
|
FIRSTEVENT = 0
|
|
|
|
QUIT = 0x100
|
|
|
|
WINDOWEVENT = 0x200
|
|
SYSWMEVENT = 0x201
|
|
|
|
KEYDOWN = 0x300
|
|
KEYUP = 0x301
|
|
TEXTEDITING = 0x302
|
|
TEXTINPUT = 0x303
|
|
|
|
MOUSEMOTION = 0x400
|
|
MOUSEBUTTONDOWN = 0x401
|
|
MOUSEBUTTONUP = 0x402
|
|
MOUSEWHEEL = 0x403
|
|
|
|
INPUTMOTION = 0x500
|
|
INPUTBUTTONDOWN = 0x501
|
|
INPUTBUTTONUP = 0x502
|
|
INPUTWHEEL = 0x503
|
|
INPUTPROXIMITYIN = 0x504
|
|
INPUTPROXIMITYOUT = 0x505
|
|
|
|
JOYAXISMOTION = 0x600
|
|
JOYBALLMOTION = 0x601
|
|
JOYHATMOTION = 0x602
|
|
JOYBUTTONDOWN = 0x603
|
|
JOYBUTTONUP = 0x604
|
|
|
|
FINGERDOWN = 0x700
|
|
FINGERUP = 0x701
|
|
FINGERMOTION = 0x702
|
|
TOUCHBUTTONDOWN = 0x703
|
|
TOUCHBUTTONUP = 0x704
|
|
|
|
DOLLARGESTURE = 0x800
|
|
DOLLARRECORD = 0x801
|
|
MULTIGESTURE = 0x802
|
|
|
|
CLIPBOARDUPDATE = 0x900
|
|
|
|
USEREVENT = 0x8000
|
|
LASTEVENT = 0xFFFF
|
|
|
|
|