| 1 | /* | 
| 2 |   Simple DirectMedia Layer | 
| 3 |   Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | 
| 4 |  | 
| 5 |   This software is provided 'as-is', without any express or implied | 
| 6 |   warranty.  In no event will the authors be held liable for any damages | 
| 7 |   arising from the use of this software. | 
| 8 |  | 
| 9 |   Permission is granted to anyone to use this software for any purpose, | 
| 10 |   including commercial applications, and to alter it and redistribute it | 
| 11 |   freely, subject to the following restrictions: | 
| 12 |  | 
| 13 |   1. The origin of this software must not be misrepresented; you must not | 
| 14 |      claim that you wrote the original software. If you use this software | 
| 15 |      in a product, an acknowledgment in the product documentation would be | 
| 16 |      appreciated but is not required. | 
| 17 |   2. Altered source versions must be plainly marked as such, and must not be | 
| 18 |      misrepresented as being the original software. | 
| 19 |   3. This notice may not be removed or altered from any source distribution. | 
| 20 | */ | 
| 21 | #include "SDL_internal.h" | 
| 22 |  | 
| 23 | #ifndef SDL_categories_c_h_ | 
| 24 | #define SDL_categories_c_h_ | 
| 25 |  | 
| 26 | typedef enum SDL_EventCategory | 
| 27 | { | 
| 28 |     SDL_EVENTCATEGORY_UNKNOWN, | 
| 29 |     SDL_EVENTCATEGORY_SYSTEM, | 
| 30 |     SDL_EVENTCATEGORY_DISPLAY, | 
| 31 |     SDL_EVENTCATEGORY_WINDOW, | 
| 32 |     SDL_EVENTCATEGORY_KDEVICE, | 
| 33 |     SDL_EVENTCATEGORY_KEY, | 
| 34 |     SDL_EVENTCATEGORY_EDIT, | 
| 35 |     SDL_EVENTCATEGORY_EDIT_CANDIDATES, | 
| 36 |     SDL_EVENTCATEGORY_TEXT, | 
| 37 |     SDL_EVENTCATEGORY_MDEVICE, | 
| 38 |     SDL_EVENTCATEGORY_MOTION, | 
| 39 |     SDL_EVENTCATEGORY_BUTTON, | 
| 40 |     SDL_EVENTCATEGORY_WHEEL, | 
| 41 |     SDL_EVENTCATEGORY_JDEVICE, | 
| 42 |     SDL_EVENTCATEGORY_JAXIS, | 
| 43 |     SDL_EVENTCATEGORY_JBALL, | 
| 44 |     SDL_EVENTCATEGORY_JHAT, | 
| 45 |     SDL_EVENTCATEGORY_JBUTTON, | 
| 46 |     SDL_EVENTCATEGORY_JBATTERY, | 
| 47 |     SDL_EVENTCATEGORY_GDEVICE, | 
| 48 |     SDL_EVENTCATEGORY_GAXIS, | 
| 49 |     SDL_EVENTCATEGORY_GBUTTON, | 
| 50 |     SDL_EVENTCATEGORY_GTOUCHPAD, | 
| 51 |     SDL_EVENTCATEGORY_GSENSOR, | 
| 52 |     SDL_EVENTCATEGORY_ADEVICE, | 
| 53 |     SDL_EVENTCATEGORY_CDEVICE, | 
| 54 |     SDL_EVENTCATEGORY_SENSOR, | 
| 55 |     SDL_EVENTCATEGORY_QUIT, | 
| 56 |     SDL_EVENTCATEGORY_USER, | 
| 57 |     SDL_EVENTCATEGORY_TFINGER, | 
| 58 |     SDL_EVENTCATEGORY_PPROXIMITY, | 
| 59 |     SDL_EVENTCATEGORY_PTOUCH, | 
| 60 |     SDL_EVENTCATEGORY_PMOTION, | 
| 61 |     SDL_EVENTCATEGORY_PBUTTON, | 
| 62 |     SDL_EVENTCATEGORY_PAXIS, | 
| 63 |     SDL_EVENTCATEGORY_DROP, | 
| 64 |     SDL_EVENTCATEGORY_CLIPBOARD, | 
| 65 |     SDL_EVENTCATEGORY_RENDER, | 
| 66 | } SDL_EventCategory; | 
| 67 |  | 
| 68 | extern SDL_EventCategory SDL_GetEventCategory(Uint32 type); | 
| 69 |  | 
| 70 | #endif // SDL_categories_c_h_ | 
| 71 |  |