Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1 | Rev 8 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /* |
1 | /* |
| 2 | Simple DirectMedia Layer |
2 | Simple DirectMedia Layer |
| 3 | Copyright (C) 1997- |
3 | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| 4 | 4 | ||
| 5 | This software is provided 'as-is', without any express or implied |
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 |
6 | warranty. In no event will the authors be held liable for any damages |
| 7 | arising from the use of this software. |
7 | arising from the use of this software. |
| 8 | 8 | ||
| Line 49... | Line 49... | ||
| 49 | #include "SDL_messagebox.h" |
49 | #include "SDL_messagebox.h" |
| 50 | #include "SDL_mutex.h" |
50 | #include "SDL_mutex.h" |
| 51 | #include "SDL_power.h" |
51 | #include "SDL_power.h" |
| 52 | #include "SDL_render.h" |
52 | #include "SDL_render.h" |
| 53 | #include "SDL_rwops.h" |
53 | #include "SDL_rwops.h" |
| - | 54 | #include "SDL_sensor.h" |
|
| 54 | #include "SDL_shape.h" |
55 | #include "SDL_shape.h" |
| 55 | #include "SDL_system.h" |
56 | #include "SDL_system.h" |
| 56 | #include "SDL_thread.h" |
57 | #include "SDL_thread.h" |
| 57 | #include "SDL_timer.h" |
58 | #include "SDL_timer.h" |
| 58 | #include "SDL_version.h" |
59 | #include "SDL_version.h" |
| Line 78... | Line 79... | ||
| 78 | #define SDL_INIT_VIDEO 0x00000020u /**< SDL_INIT_VIDEO implies SDL_INIT_EVENTS */ |
79 | #define SDL_INIT_VIDEO 0x00000020u /**< SDL_INIT_VIDEO implies SDL_INIT_EVENTS */ |
| 79 | #define SDL_INIT_JOYSTICK 0x00000200u /**< SDL_INIT_JOYSTICK implies SDL_INIT_EVENTS */ |
80 | #define SDL_INIT_JOYSTICK 0x00000200u /**< SDL_INIT_JOYSTICK implies SDL_INIT_EVENTS */ |
| 80 | #define SDL_INIT_HAPTIC 0x00001000u |
81 | #define SDL_INIT_HAPTIC 0x00001000u |
| 81 | #define SDL_INIT_GAMECONTROLLER 0x00002000u /**< SDL_INIT_GAMECONTROLLER implies SDL_INIT_JOYSTICK */ |
82 | #define SDL_INIT_GAMECONTROLLER 0x00002000u /**< SDL_INIT_GAMECONTROLLER implies SDL_INIT_JOYSTICK */ |
| 82 | #define SDL_INIT_EVENTS 0x00004000u |
83 | #define SDL_INIT_EVENTS 0x00004000u |
| - | 84 | #define SDL_INIT_SENSOR 0x00008000u |
|
| 83 | #define SDL_INIT_NOPARACHUTE 0x00100000u /**< compatibility; this flag is ignored. */ |
85 | #define SDL_INIT_NOPARACHUTE 0x00100000u /**< compatibility; this flag is ignored. */ |
| 84 | #define SDL_INIT_EVERYTHING ( \ |
86 | #define SDL_INIT_EVERYTHING ( \ |
| 85 | SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_EVENTS | \ |
87 | SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_EVENTS | \ |
| 86 | SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER \ |
88 | SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER | SDL_INIT_SENSOR \ |
| 87 | ) |
89 | ) |
| 88 | /* @} */ |
90 | /* @} */ |
| 89 | 91 | ||
| 90 | /** |
92 | /** |
| 91 | * This function initializes the subsystems specified by \c flags |
93 | * This function initializes the subsystems specified by \c flags |