|
37 | 37 | EventType* {.size: sizeof(uint32).} = enum
|
38 | 38 | QuitEvent = 0x100, AppTerminating, AppLowMemory, AppWillEnterBackground,
|
39 | 39 | AppDidEnterBackground, AppWillEnterForeground, AppDidEnterForeground,
|
| 40 | + DisplayEvent = 0x150, |
40 | 41 | WindowEvent = 0x200, SysWMEvent,
|
41 |
| - KeyDown = 0x300, KeyUp, TextEditing, TextInput, |
| 42 | + KeyDown = 0x300, KeyUp, TextEditing, TextInput, KeymapChanged, |
42 | 43 | MouseMotion = 0x400, MouseButtonDown, MouseButtonUp, MouseWheel,
|
43 | 44 | JoyAxisMotion = 0x600, JoyBallMotion, JoyHatMotion, JoyButtonDown,
|
44 | 45 | JoyButtonUp, JoyDeviceAdded, JoyDeviceRemoved,
|
|
47 | 48 | FingerDown = 0x700, FingerUp, FingerMotion,
|
48 | 49 | DollarGesture = 0x800, DollarRecord, MultiGesture,
|
49 | 50 | ClipboardUpdate = 0x900,
|
50 |
| - DropFile = 0x1000, |
| 51 | + DropFile = 0x1000, DropText, DropBegin, DropComplete, |
51 | 52 | AudioDeviceAdded = 0x1100, AudioDeviceRemoved = 0x1101,
|
| 53 | + SensorUpdate = 0x1200, |
| 54 | + RenderTargetsReset = 0x2000, RenderDeviceReset, |
52 | 55 | UserEvent = 0x8000, UserEvent1, UserEvent2, UserEvent3, UserEvent4, UserEvent5,
|
53 | 56 | LastEvent = 0xFFFF,
|
54 | 57 |
|
|
308 | 311 | WMinfo* = object
|
309 | 312 | version*: SDL_Version
|
310 | 313 | subsystem*: SysWMType
|
311 |
| - padding*: array[24, byte] ## if the low-level stuff is important to you check \ |
| 314 | + padding*: array[64, byte] ## if the low-level stuff is important to you check \ |
312 | 315 | ## SDL_syswm.h and cast padding to the right type
|
313 | 316 |
|
314 | 317 | const ## WindowFlags
|
|
0 commit comments