alias SDL::Event::Type

Alias Definition

LibSDL::EventType

Defined in:

events.cr

Constant Summary

APP_DID_ENTER_BACKGROUND = 260_u32
APP_DID_ENTER_FOREGROUND = 262_u32
APP_LOW_MEMORY = 258_u32
APP_TERMINATING = 257_u32
APP_WILL_ENTER_BACKGROUND = 259_u32
APP_WILL_ENTER_FOREGROUND = 261_u32
CLIPBOARD_UPDATE = 2304_u32

clipboard

CONTROLLER_AXIS_MOTION = 1616_u32
CONTROLLER_BUTTON_DOWN = 1617_u32
CONTROLLER_BUTTON_UP = 1618_u32
CONTROLLER_DEVICE_ADDED = 1619_u32
CONTROLLER_DEVICE_REMAPPED = 1621_u32
CONTROLLER_DEVICE_REMOVED = 1620_u32
DOLLAR_GESTURE = 2048_u32
DOLLAR_RECORD = 2049_u32
DROP_FILE = 4096_u32

drag n' drop

FINGER_DOWN = 1792_u32
FINGER_MOTION = 1794_u32
FINGER_UP = 1793_u32
FIRSTEVENT = 0_u32
JOY_AXIS_MOTION = 1536_u32
JOY_BALL_MOTION = 1537_u32
JOY_BUTTON_DOWN = 1539_u32
JOY_BUTTON_UP = 1540_u32
JOY_DEVICE_ADDED = 1541_u32
JOY_DEVICE_REMOVED = 1542_u32
JOY_HAT_MOTION = 1538_u32
KEYDOWN = 768_u32
KEYUP = 769_u32
LAST_EVENT = 65535_u32

maximum event number

MOUSE_BUTTON_DOWN = 1025_u32
MOUSE_BUTTON_UP = 1026_u32
MOUSE_MOTION = 1024_u32
MOUSE_WHEEL = 1027_u32
MULTI_GESTURE = 2050_u32
QUIT = 256_u32
RENDER_TARGETS_RESET = 8192_u32

render

SYS_WM_EVENT = 513_u32
TEXT_EDITING = 770_u32
TEXT_INPUT = 771_u32
USER_EVENT = 32768_u32

user custom

WINDOW_EVENT = 512_u32