rubygl 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. checksums.yaml +8 -8
  2. data/Rakefile +1 -1
  3. data/ext/macosx/{SDL2.framework/SDL2 → SDL2} +0 -0
  4. data/lib/rubygl.rb +1 -1
  5. data/rubygl.gemspec +1 -1
  6. metadata +2 -171
  7. data/ext/macosx/SDL2.framework/Headers/SDL.h +0 -163
  8. data/ext/macosx/SDL2.framework/Headers/SDL_assert.h +0 -284
  9. data/ext/macosx/SDL2.framework/Headers/SDL_atomic.h +0 -260
  10. data/ext/macosx/SDL2.framework/Headers/SDL_audio.h +0 -506
  11. data/ext/macosx/SDL2.framework/Headers/SDL_bits.h +0 -97
  12. data/ext/macosx/SDL2.framework/Headers/SDL_blendmode.h +0 -63
  13. data/ext/macosx/SDL2.framework/Headers/SDL_clipboard.h +0 -71
  14. data/ext/macosx/SDL2.framework/Headers/SDL_config.h +0 -55
  15. data/ext/macosx/SDL2.framework/Headers/SDL_config_macosx.h +0 -184
  16. data/ext/macosx/SDL2.framework/Headers/SDL_copying.h +0 -20
  17. data/ext/macosx/SDL2.framework/Headers/SDL_cpuinfo.h +0 -156
  18. data/ext/macosx/SDL2.framework/Headers/SDL_endian.h +0 -239
  19. data/ext/macosx/SDL2.framework/Headers/SDL_error.h +0 -76
  20. data/ext/macosx/SDL2.framework/Headers/SDL_events.h +0 -723
  21. data/ext/macosx/SDL2.framework/Headers/SDL_filesystem.h +0 -136
  22. data/ext/macosx/SDL2.framework/Headers/SDL_gamecontroller.h +0 -316
  23. data/ext/macosx/SDL2.framework/Headers/SDL_gesture.h +0 -87
  24. data/ext/macosx/SDL2.framework/Headers/SDL_haptic.h +0 -1225
  25. data/ext/macosx/SDL2.framework/Headers/SDL_hints.h +0 -517
  26. data/ext/macosx/SDL2.framework/Headers/SDL_joystick.h +0 -253
  27. data/ext/macosx/SDL2.framework/Headers/SDL_keyboard.h +0 -217
  28. data/ext/macosx/SDL2.framework/Headers/SDL_keycode.h +0 -341
  29. data/ext/macosx/SDL2.framework/Headers/SDL_loadso.h +0 -81
  30. data/ext/macosx/SDL2.framework/Headers/SDL_log.h +0 -211
  31. data/ext/macosx/SDL2.framework/Headers/SDL_main.h +0 -155
  32. data/ext/macosx/SDL2.framework/Headers/SDL_messagebox.h +0 -144
  33. data/ext/macosx/SDL2.framework/Headers/SDL_mouse.h +0 -224
  34. data/ext/macosx/SDL2.framework/Headers/SDL_mutex.h +0 -251
  35. data/ext/macosx/SDL2.framework/Headers/SDL_name.h +0 -33
  36. data/ext/macosx/SDL2.framework/Headers/SDL_opengl.h +0 -11126
  37. data/ext/macosx/SDL2.framework/Headers/SDL_opengles.h +0 -38
  38. data/ext/macosx/SDL2.framework/Headers/SDL_opengles2.h +0 -2790
  39. data/ext/macosx/SDL2.framework/Headers/SDL_pixels.h +0 -429
  40. data/ext/macosx/SDL2.framework/Headers/SDL_platform.h +0 -164
  41. data/ext/macosx/SDL2.framework/Headers/SDL_power.h +0 -75
  42. data/ext/macosx/SDL2.framework/Headers/SDL_quit.h +0 -58
  43. data/ext/macosx/SDL2.framework/Headers/SDL_rect.h +0 -138
  44. data/ext/macosx/SDL2.framework/Headers/SDL_render.h +0 -870
  45. data/ext/macosx/SDL2.framework/Headers/SDL_revision.h +0 -2
  46. data/ext/macosx/SDL2.framework/Headers/SDL_rwops.h +0 -232
  47. data/ext/macosx/SDL2.framework/Headers/SDL_scancode.h +0 -401
  48. data/ext/macosx/SDL2.framework/Headers/SDL_shape.h +0 -143
  49. data/ext/macosx/SDL2.framework/Headers/SDL_stdinc.h +0 -405
  50. data/ext/macosx/SDL2.framework/Headers/SDL_surface.h +0 -503
  51. data/ext/macosx/SDL2.framework/Headers/SDL_system.h +0 -191
  52. data/ext/macosx/SDL2.framework/Headers/SDL_syswm.h +0 -272
  53. data/ext/macosx/SDL2.framework/Headers/SDL_thread.h +0 -287
  54. data/ext/macosx/SDL2.framework/Headers/SDL_timer.h +0 -115
  55. data/ext/macosx/SDL2.framework/Headers/SDL_touch.h +0 -86
  56. data/ext/macosx/SDL2.framework/Headers/SDL_types.h +0 -29
  57. data/ext/macosx/SDL2.framework/Headers/SDL_version.h +0 -162
  58. data/ext/macosx/SDL2.framework/Headers/SDL_video.h +0 -979
  59. data/ext/macosx/SDL2.framework/Headers/begin_code.h +0 -140
  60. data/ext/macosx/SDL2.framework/Headers/close_code.h +0 -37
  61. data/ext/macosx/SDL2.framework/Resources/Info.plist +0 -42
  62. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL.h +0 -163
  63. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_assert.h +0 -284
  64. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_atomic.h +0 -260
  65. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_audio.h +0 -506
  66. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_bits.h +0 -97
  67. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_blendmode.h +0 -63
  68. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_clipboard.h +0 -71
  69. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_config.h +0 -55
  70. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_config_macosx.h +0 -184
  71. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_copying.h +0 -20
  72. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_cpuinfo.h +0 -156
  73. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_endian.h +0 -239
  74. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_error.h +0 -76
  75. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_events.h +0 -723
  76. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_filesystem.h +0 -136
  77. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_gamecontroller.h +0 -316
  78. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_gesture.h +0 -87
  79. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_haptic.h +0 -1225
  80. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_hints.h +0 -517
  81. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_joystick.h +0 -253
  82. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_keyboard.h +0 -217
  83. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_keycode.h +0 -341
  84. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_loadso.h +0 -81
  85. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_log.h +0 -211
  86. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_main.h +0 -155
  87. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_messagebox.h +0 -144
  88. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_mouse.h +0 -224
  89. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_mutex.h +0 -251
  90. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_name.h +0 -33
  91. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_opengl.h +0 -11126
  92. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_opengles.h +0 -38
  93. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_opengles2.h +0 -2790
  94. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_pixels.h +0 -429
  95. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_platform.h +0 -164
  96. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_power.h +0 -75
  97. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_quit.h +0 -58
  98. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_rect.h +0 -138
  99. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_render.h +0 -870
  100. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_revision.h +0 -2
  101. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_rwops.h +0 -232
  102. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_scancode.h +0 -401
  103. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_shape.h +0 -143
  104. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_stdinc.h +0 -405
  105. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_surface.h +0 -503
  106. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_system.h +0 -191
  107. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_syswm.h +0 -272
  108. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_thread.h +0 -287
  109. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_timer.h +0 -115
  110. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_touch.h +0 -86
  111. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_types.h +0 -29
  112. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_version.h +0 -162
  113. data/ext/macosx/SDL2.framework/Versions/A/Headers/SDL_video.h +0 -979
  114. data/ext/macosx/SDL2.framework/Versions/A/Headers/begin_code.h +0 -140
  115. data/ext/macosx/SDL2.framework/Versions/A/Headers/close_code.h +0 -37
  116. data/ext/macosx/SDL2.framework/Versions/A/Resources/Info.plist +0 -42
  117. data/ext/macosx/SDL2.framework/Versions/A/SDL2 +0 -0
  118. data/ext/macosx/SDL2.framework/Versions/A/_CodeSignature/CodeResources +0 -331
  119. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL.h +0 -163
  120. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_assert.h +0 -284
  121. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_atomic.h +0 -260
  122. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_audio.h +0 -506
  123. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_bits.h +0 -97
  124. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_blendmode.h +0 -63
  125. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_clipboard.h +0 -71
  126. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_config.h +0 -55
  127. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_config_macosx.h +0 -184
  128. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_copying.h +0 -20
  129. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_cpuinfo.h +0 -156
  130. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_endian.h +0 -239
  131. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_error.h +0 -76
  132. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_events.h +0 -723
  133. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_filesystem.h +0 -136
  134. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_gamecontroller.h +0 -316
  135. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_gesture.h +0 -87
  136. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_haptic.h +0 -1225
  137. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_hints.h +0 -517
  138. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_joystick.h +0 -253
  139. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_keyboard.h +0 -217
  140. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_keycode.h +0 -341
  141. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_loadso.h +0 -81
  142. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_log.h +0 -211
  143. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_main.h +0 -155
  144. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_messagebox.h +0 -144
  145. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_mouse.h +0 -224
  146. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_mutex.h +0 -251
  147. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_name.h +0 -33
  148. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_opengl.h +0 -11126
  149. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_opengles.h +0 -38
  150. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_opengles2.h +0 -2790
  151. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_pixels.h +0 -429
  152. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_platform.h +0 -164
  153. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_power.h +0 -75
  154. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_quit.h +0 -58
  155. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_rect.h +0 -138
  156. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_render.h +0 -870
  157. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_revision.h +0 -2
  158. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_rwops.h +0 -232
  159. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_scancode.h +0 -401
  160. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_shape.h +0 -143
  161. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_stdinc.h +0 -405
  162. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_surface.h +0 -503
  163. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_system.h +0 -191
  164. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_syswm.h +0 -272
  165. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_thread.h +0 -287
  166. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_timer.h +0 -115
  167. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_touch.h +0 -86
  168. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_types.h +0 -29
  169. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_version.h +0 -162
  170. data/ext/macosx/SDL2.framework/Versions/Current/Headers/SDL_video.h +0 -979
  171. data/ext/macosx/SDL2.framework/Versions/Current/Headers/begin_code.h +0 -140
  172. data/ext/macosx/SDL2.framework/Versions/Current/Headers/close_code.h +0 -37
  173. data/ext/macosx/SDL2.framework/Versions/Current/Resources/Info.plist +0 -42
  174. data/ext/macosx/SDL2.framework/Versions/Current/SDL2 +0 -0
  175. data/ext/macosx/SDL2.framework/Versions/Current/_CodeSignature/CodeResources +0 -331
@@ -1,341 +0,0 @@
1
- /*
2
- Simple DirectMedia Layer
3
- Copyright (C) 1997-2014 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
-
22
- /**
23
- * \file SDL_keycode.h
24
- *
25
- * Defines constants which identify keyboard keys and modifiers.
26
- */
27
-
28
- #ifndef _SDL_keycode_h
29
- #define _SDL_keycode_h
30
-
31
- #include "SDL_stdinc.h"
32
- #include "SDL_scancode.h"
33
-
34
- /**
35
- * \brief The SDL virtual key representation.
36
- *
37
- * Values of this type are used to represent keyboard keys using the current
38
- * layout of the keyboard. These values include Unicode values representing
39
- * the unmodified character that would be generated by pressing the key, or
40
- * an SDLK_* constant for those keys that do not generate characters.
41
- */
42
- typedef Sint32 SDL_Keycode;
43
-
44
- #define SDLK_SCANCODE_MASK (1<<30)
45
- #define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)
46
-
47
- enum
48
- {
49
- SDLK_UNKNOWN = 0,
50
-
51
- SDLK_RETURN = '\r',
52
- SDLK_ESCAPE = '\033',
53
- SDLK_BACKSPACE = '\b',
54
- SDLK_TAB = '\t',
55
- SDLK_SPACE = ' ',
56
- SDLK_EXCLAIM = '!',
57
- SDLK_QUOTEDBL = '"',
58
- SDLK_HASH = '#',
59
- SDLK_PERCENT = '%',
60
- SDLK_DOLLAR = '$',
61
- SDLK_AMPERSAND = '&',
62
- SDLK_QUOTE = '\'',
63
- SDLK_LEFTPAREN = '(',
64
- SDLK_RIGHTPAREN = ')',
65
- SDLK_ASTERISK = '*',
66
- SDLK_PLUS = '+',
67
- SDLK_COMMA = ',',
68
- SDLK_MINUS = '-',
69
- SDLK_PERIOD = '.',
70
- SDLK_SLASH = '/',
71
- SDLK_0 = '0',
72
- SDLK_1 = '1',
73
- SDLK_2 = '2',
74
- SDLK_3 = '3',
75
- SDLK_4 = '4',
76
- SDLK_5 = '5',
77
- SDLK_6 = '6',
78
- SDLK_7 = '7',
79
- SDLK_8 = '8',
80
- SDLK_9 = '9',
81
- SDLK_COLON = ':',
82
- SDLK_SEMICOLON = ';',
83
- SDLK_LESS = '<',
84
- SDLK_EQUALS = '=',
85
- SDLK_GREATER = '>',
86
- SDLK_QUESTION = '?',
87
- SDLK_AT = '@',
88
- /*
89
- Skip uppercase letters
90
- */
91
- SDLK_LEFTBRACKET = '[',
92
- SDLK_BACKSLASH = '\\',
93
- SDLK_RIGHTBRACKET = ']',
94
- SDLK_CARET = '^',
95
- SDLK_UNDERSCORE = '_',
96
- SDLK_BACKQUOTE = '`',
97
- SDLK_a = 'a',
98
- SDLK_b = 'b',
99
- SDLK_c = 'c',
100
- SDLK_d = 'd',
101
- SDLK_e = 'e',
102
- SDLK_f = 'f',
103
- SDLK_g = 'g',
104
- SDLK_h = 'h',
105
- SDLK_i = 'i',
106
- SDLK_j = 'j',
107
- SDLK_k = 'k',
108
- SDLK_l = 'l',
109
- SDLK_m = 'm',
110
- SDLK_n = 'n',
111
- SDLK_o = 'o',
112
- SDLK_p = 'p',
113
- SDLK_q = 'q',
114
- SDLK_r = 'r',
115
- SDLK_s = 's',
116
- SDLK_t = 't',
117
- SDLK_u = 'u',
118
- SDLK_v = 'v',
119
- SDLK_w = 'w',
120
- SDLK_x = 'x',
121
- SDLK_y = 'y',
122
- SDLK_z = 'z',
123
-
124
- SDLK_CAPSLOCK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CAPSLOCK),
125
-
126
- SDLK_F1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F1),
127
- SDLK_F2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F2),
128
- SDLK_F3 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F3),
129
- SDLK_F4 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F4),
130
- SDLK_F5 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F5),
131
- SDLK_F6 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F6),
132
- SDLK_F7 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F7),
133
- SDLK_F8 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F8),
134
- SDLK_F9 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F9),
135
- SDLK_F10 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F10),
136
- SDLK_F11 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F11),
137
- SDLK_F12 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F12),
138
-
139
- SDLK_PRINTSCREEN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRINTSCREEN),
140
- SDLK_SCROLLLOCK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SCROLLLOCK),
141
- SDLK_PAUSE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAUSE),
142
- SDLK_INSERT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_INSERT),
143
- SDLK_HOME = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HOME),
144
- SDLK_PAGEUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEUP),
145
- SDLK_DELETE = '\177',
146
- SDLK_END = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_END),
147
- SDLK_PAGEDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEDOWN),
148
- SDLK_RIGHT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RIGHT),
149
- SDLK_LEFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LEFT),
150
- SDLK_DOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DOWN),
151
- SDLK_UP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UP),
152
-
153
- SDLK_NUMLOCKCLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_NUMLOCKCLEAR),
154
- SDLK_KP_DIVIDE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DIVIDE),
155
- SDLK_KP_MULTIPLY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MULTIPLY),
156
- SDLK_KP_MINUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MINUS),
157
- SDLK_KP_PLUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUS),
158
- SDLK_KP_ENTER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_ENTER),
159
- SDLK_KP_1 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_1),
160
- SDLK_KP_2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_2),
161
- SDLK_KP_3 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_3),
162
- SDLK_KP_4 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_4),
163
- SDLK_KP_5 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_5),
164
- SDLK_KP_6 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_6),
165
- SDLK_KP_7 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_7),
166
- SDLK_KP_8 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_8),
167
- SDLK_KP_9 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_9),
168
- SDLK_KP_0 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_0),
169
- SDLK_KP_PERIOD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERIOD),
170
-
171
- SDLK_APPLICATION = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APPLICATION),
172
- SDLK_POWER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_POWER),
173
- SDLK_KP_EQUALS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALS),
174
- SDLK_F13 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F13),
175
- SDLK_F14 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F14),
176
- SDLK_F15 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F15),
177
- SDLK_F16 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F16),
178
- SDLK_F17 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F17),
179
- SDLK_F18 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F18),
180
- SDLK_F19 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F19),
181
- SDLK_F20 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F20),
182
- SDLK_F21 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F21),
183
- SDLK_F22 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F22),
184
- SDLK_F23 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F23),
185
- SDLK_F24 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F24),
186
- SDLK_EXECUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXECUTE),
187
- SDLK_HELP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HELP),
188
- SDLK_MENU = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MENU),
189
- SDLK_SELECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SELECT),
190
- SDLK_STOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_STOP),
191
- SDLK_AGAIN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AGAIN),
192
- SDLK_UNDO = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UNDO),
193
- SDLK_CUT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CUT),
194
- SDLK_COPY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COPY),
195
- SDLK_PASTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PASTE),
196
- SDLK_FIND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_FIND),
197
- SDLK_MUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MUTE),
198
- SDLK_VOLUMEUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEUP),
199
- SDLK_VOLUMEDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEDOWN),
200
- SDLK_KP_COMMA = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COMMA),
201
- SDLK_KP_EQUALSAS400 =
202
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALSAS400),
203
-
204
- SDLK_ALTERASE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ALTERASE),
205
- SDLK_SYSREQ = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SYSREQ),
206
- SDLK_CANCEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CANCEL),
207
- SDLK_CLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEAR),
208
- SDLK_PRIOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRIOR),
209
- SDLK_RETURN2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RETURN2),
210
- SDLK_SEPARATOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SEPARATOR),
211
- SDLK_OUT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OUT),
212
- SDLK_OPER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OPER),
213
- SDLK_CLEARAGAIN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEARAGAIN),
214
- SDLK_CRSEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CRSEL),
215
- SDLK_EXSEL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXSEL),
216
-
217
- SDLK_KP_00 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_00),
218
- SDLK_KP_000 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_000),
219
- SDLK_THOUSANDSSEPARATOR =
220
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_THOUSANDSSEPARATOR),
221
- SDLK_DECIMALSEPARATOR =
222
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DECIMALSEPARATOR),
223
- SDLK_CURRENCYUNIT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYUNIT),
224
- SDLK_CURRENCYSUBUNIT =
225
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYSUBUNIT),
226
- SDLK_KP_LEFTPAREN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTPAREN),
227
- SDLK_KP_RIGHTPAREN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTPAREN),
228
- SDLK_KP_LEFTBRACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTBRACE),
229
- SDLK_KP_RIGHTBRACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTBRACE),
230
- SDLK_KP_TAB = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_TAB),
231
- SDLK_KP_BACKSPACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BACKSPACE),
232
- SDLK_KP_A = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_A),
233
- SDLK_KP_B = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_B),
234
- SDLK_KP_C = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_C),
235
- SDLK_KP_D = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_D),
236
- SDLK_KP_E = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_E),
237
- SDLK_KP_F = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_F),
238
- SDLK_KP_XOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_XOR),
239
- SDLK_KP_POWER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_POWER),
240
- SDLK_KP_PERCENT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERCENT),
241
- SDLK_KP_LESS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LESS),
242
- SDLK_KP_GREATER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_GREATER),
243
- SDLK_KP_AMPERSAND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AMPERSAND),
244
- SDLK_KP_DBLAMPERSAND =
245
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLAMPERSAND),
246
- SDLK_KP_VERTICALBAR =
247
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_VERTICALBAR),
248
- SDLK_KP_DBLVERTICALBAR =
249
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLVERTICALBAR),
250
- SDLK_KP_COLON = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COLON),
251
- SDLK_KP_HASH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HASH),
252
- SDLK_KP_SPACE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_SPACE),
253
- SDLK_KP_AT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AT),
254
- SDLK_KP_EXCLAM = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EXCLAM),
255
- SDLK_KP_MEMSTORE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSTORE),
256
- SDLK_KP_MEMRECALL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMRECALL),
257
- SDLK_KP_MEMCLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMCLEAR),
258
- SDLK_KP_MEMADD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMADD),
259
- SDLK_KP_MEMSUBTRACT =
260
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSUBTRACT),
261
- SDLK_KP_MEMMULTIPLY =
262
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMMULTIPLY),
263
- SDLK_KP_MEMDIVIDE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMDIVIDE),
264
- SDLK_KP_PLUSMINUS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUSMINUS),
265
- SDLK_KP_CLEAR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEAR),
266
- SDLK_KP_CLEARENTRY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEARENTRY),
267
- SDLK_KP_BINARY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BINARY),
268
- SDLK_KP_OCTAL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_OCTAL),
269
- SDLK_KP_DECIMAL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DECIMAL),
270
- SDLK_KP_HEXADECIMAL =
271
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HEXADECIMAL),
272
-
273
- SDLK_LCTRL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LCTRL),
274
- SDLK_LSHIFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LSHIFT),
275
- SDLK_LALT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LALT),
276
- SDLK_LGUI = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LGUI),
277
- SDLK_RCTRL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RCTRL),
278
- SDLK_RSHIFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RSHIFT),
279
- SDLK_RALT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RALT),
280
- SDLK_RGUI = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RGUI),
281
-
282
- SDLK_MODE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MODE),
283
-
284
- SDLK_AUDIONEXT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIONEXT),
285
- SDLK_AUDIOPREV = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPREV),
286
- SDLK_AUDIOSTOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOSTOP),
287
- SDLK_AUDIOPLAY = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPLAY),
288
- SDLK_AUDIOMUTE = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOMUTE),
289
- SDLK_MEDIASELECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MEDIASELECT),
290
- SDLK_WWW = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_WWW),
291
- SDLK_MAIL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MAIL),
292
- SDLK_CALCULATOR = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALCULATOR),
293
- SDLK_COMPUTER = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COMPUTER),
294
- SDLK_AC_SEARCH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_SEARCH),
295
- SDLK_AC_HOME = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_HOME),
296
- SDLK_AC_BACK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BACK),
297
- SDLK_AC_FORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_FORWARD),
298
- SDLK_AC_STOP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_STOP),
299
- SDLK_AC_REFRESH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_REFRESH),
300
- SDLK_AC_BOOKMARKS = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BOOKMARKS),
301
-
302
- SDLK_BRIGHTNESSDOWN =
303
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSDOWN),
304
- SDLK_BRIGHTNESSUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSUP),
305
- SDLK_DISPLAYSWITCH = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DISPLAYSWITCH),
306
- SDLK_KBDILLUMTOGGLE =
307
- SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMTOGGLE),
308
- SDLK_KBDILLUMDOWN = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMDOWN),
309
- SDLK_KBDILLUMUP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMUP),
310
- SDLK_EJECT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EJECT),
311
- SDLK_SLEEP = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP)
312
- };
313
-
314
- /**
315
- * \brief Enumeration of valid key mods (possibly OR'd together).
316
- */
317
- typedef enum
318
- {
319
- KMOD_NONE = 0x0000,
320
- KMOD_LSHIFT = 0x0001,
321
- KMOD_RSHIFT = 0x0002,
322
- KMOD_LCTRL = 0x0040,
323
- KMOD_RCTRL = 0x0080,
324
- KMOD_LALT = 0x0100,
325
- KMOD_RALT = 0x0200,
326
- KMOD_LGUI = 0x0400,
327
- KMOD_RGUI = 0x0800,
328
- KMOD_NUM = 0x1000,
329
- KMOD_CAPS = 0x2000,
330
- KMOD_MODE = 0x4000,
331
- KMOD_RESERVED = 0x8000
332
- } SDL_Keymod;
333
-
334
- #define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
335
- #define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT)
336
- #define KMOD_ALT (KMOD_LALT|KMOD_RALT)
337
- #define KMOD_GUI (KMOD_LGUI|KMOD_RGUI)
338
-
339
- #endif /* _SDL_keycode_h */
340
-
341
- /* vi: set ts=4 sw=4 expandtab: */
@@ -1,81 +0,0 @@
1
- /*
2
- Simple DirectMedia Layer
3
- Copyright (C) 1997-2014 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
-
22
- /**
23
- * \file SDL_loadso.h
24
- *
25
- * System dependent library loading routines
26
- *
27
- * Some things to keep in mind:
28
- * \li These functions only work on C function names. Other languages may
29
- * have name mangling and intrinsic language support that varies from
30
- * compiler to compiler.
31
- * \li Make sure you declare your function pointers with the same calling
32
- * convention as the actual library function. Your code will crash
33
- * mysteriously if you do not do this.
34
- * \li Avoid namespace collisions. If you load a symbol from the library,
35
- * it is not defined whether or not it goes into the global symbol
36
- * namespace for the application. If it does and it conflicts with
37
- * symbols in your code or other shared libraries, you will not get
38
- * the results you expect. :)
39
- */
40
-
41
- #ifndef _SDL_loadso_h
42
- #define _SDL_loadso_h
43
-
44
- #include "SDL_stdinc.h"
45
- #include "SDL_error.h"
46
-
47
- #include "begin_code.h"
48
- /* Set up for C function definitions, even when using C++ */
49
- #ifdef __cplusplus
50
- extern "C" {
51
- #endif
52
-
53
- /**
54
- * This function dynamically loads a shared object and returns a pointer
55
- * to the object handle (or NULL if there was an error).
56
- * The 'sofile' parameter is a system dependent name of the object file.
57
- */
58
- extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile);
59
-
60
- /**
61
- * Given an object handle, this function looks up the address of the
62
- * named function in the shared object and returns it. This address
63
- * is no longer valid after calling SDL_UnloadObject().
64
- */
65
- extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle,
66
- const char *name);
67
-
68
- /**
69
- * Unload a shared object from memory.
70
- */
71
- extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle);
72
-
73
- /* Ends C function definitions when using C++ */
74
- #ifdef __cplusplus
75
- }
76
- #endif
77
- #include "close_code.h"
78
-
79
- #endif /* _SDL_loadso_h */
80
-
81
- /* vi: set ts=4 sw=4 expandtab: */
@@ -1,211 +0,0 @@
1
- /*
2
- Simple DirectMedia Layer
3
- Copyright (C) 1997-2014 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
-
22
- /**
23
- * \file SDL_log.h
24
- *
25
- * Simple log messages with categories and priorities.
26
- *
27
- * By default logs are quiet, but if you're debugging SDL you might want:
28
- *
29
- * SDL_LogSetAllPriority(SDL_LOG_PRIORITY_WARN);
30
- *
31
- * Here's where the messages go on different platforms:
32
- * Windows: debug output stream
33
- * Android: log output
34
- * Others: standard error output (stderr)
35
- */
36
-
37
- #ifndef _SDL_log_h
38
- #define _SDL_log_h
39
-
40
- #include "SDL_stdinc.h"
41
-
42
- #include "begin_code.h"
43
- /* Set up for C function definitions, even when using C++ */
44
- #ifdef __cplusplus
45
- extern "C" {
46
- #endif
47
-
48
-
49
- /**
50
- * \brief The maximum size of a log message
51
- *
52
- * Messages longer than the maximum size will be truncated
53
- */
54
- #define SDL_MAX_LOG_MESSAGE 4096
55
-
56
- /**
57
- * \brief The predefined log categories
58
- *
59
- * By default the application category is enabled at the INFO level,
60
- * the assert category is enabled at the WARN level, test is enabled
61
- * at the VERBOSE level and all other categories are enabled at the
62
- * CRITICAL level.
63
- */
64
- enum
65
- {
66
- SDL_LOG_CATEGORY_APPLICATION,
67
- SDL_LOG_CATEGORY_ERROR,
68
- SDL_LOG_CATEGORY_ASSERT,
69
- SDL_LOG_CATEGORY_SYSTEM,
70
- SDL_LOG_CATEGORY_AUDIO,
71
- SDL_LOG_CATEGORY_VIDEO,
72
- SDL_LOG_CATEGORY_RENDER,
73
- SDL_LOG_CATEGORY_INPUT,
74
- SDL_LOG_CATEGORY_TEST,
75
-
76
- /* Reserved for future SDL library use */
77
- SDL_LOG_CATEGORY_RESERVED1,
78
- SDL_LOG_CATEGORY_RESERVED2,
79
- SDL_LOG_CATEGORY_RESERVED3,
80
- SDL_LOG_CATEGORY_RESERVED4,
81
- SDL_LOG_CATEGORY_RESERVED5,
82
- SDL_LOG_CATEGORY_RESERVED6,
83
- SDL_LOG_CATEGORY_RESERVED7,
84
- SDL_LOG_CATEGORY_RESERVED8,
85
- SDL_LOG_CATEGORY_RESERVED9,
86
- SDL_LOG_CATEGORY_RESERVED10,
87
-
88
- /* Beyond this point is reserved for application use, e.g.
89
- enum {
90
- MYAPP_CATEGORY_AWESOME1 = SDL_LOG_CATEGORY_CUSTOM,
91
- MYAPP_CATEGORY_AWESOME2,
92
- MYAPP_CATEGORY_AWESOME3,
93
- ...
94
- };
95
- */
96
- SDL_LOG_CATEGORY_CUSTOM
97
- };
98
-
99
- /**
100
- * \brief The predefined log priorities
101
- */
102
- typedef enum
103
- {
104
- SDL_LOG_PRIORITY_VERBOSE = 1,
105
- SDL_LOG_PRIORITY_DEBUG,
106
- SDL_LOG_PRIORITY_INFO,
107
- SDL_LOG_PRIORITY_WARN,
108
- SDL_LOG_PRIORITY_ERROR,
109
- SDL_LOG_PRIORITY_CRITICAL,
110
- SDL_NUM_LOG_PRIORITIES
111
- } SDL_LogPriority;
112
-
113
-
114
- /**
115
- * \brief Set the priority of all log categories
116
- */
117
- extern DECLSPEC void SDLCALL SDL_LogSetAllPriority(SDL_LogPriority priority);
118
-
119
- /**
120
- * \brief Set the priority of a particular log category
121
- */
122
- extern DECLSPEC void SDLCALL SDL_LogSetPriority(int category,
123
- SDL_LogPriority priority);
124
-
125
- /**
126
- * \brief Get the priority of a particular log category
127
- */
128
- extern DECLSPEC SDL_LogPriority SDLCALL SDL_LogGetPriority(int category);
129
-
130
- /**
131
- * \brief Reset all priorities to default.
132
- *
133
- * \note This is called in SDL_Quit().
134
- */
135
- extern DECLSPEC void SDLCALL SDL_LogResetPriorities(void);
136
-
137
- /**
138
- * \brief Log a message with SDL_LOG_CATEGORY_APPLICATION and SDL_LOG_PRIORITY_INFO
139
- */
140
- extern DECLSPEC void SDLCALL SDL_Log(const char *fmt, ...);
141
-
142
- /**
143
- * \brief Log a message with SDL_LOG_PRIORITY_VERBOSE
144
- */
145
- extern DECLSPEC void SDLCALL SDL_LogVerbose(int category, const char *fmt, ...);
146
-
147
- /**
148
- * \brief Log a message with SDL_LOG_PRIORITY_DEBUG
149
- */
150
- extern DECLSPEC void SDLCALL SDL_LogDebug(int category, const char *fmt, ...);
151
-
152
- /**
153
- * \brief Log a message with SDL_LOG_PRIORITY_INFO
154
- */
155
- extern DECLSPEC void SDLCALL SDL_LogInfo(int category, const char *fmt, ...);
156
-
157
- /**
158
- * \brief Log a message with SDL_LOG_PRIORITY_WARN
159
- */
160
- extern DECLSPEC void SDLCALL SDL_LogWarn(int category, const char *fmt, ...);
161
-
162
- /**
163
- * \brief Log a message with SDL_LOG_PRIORITY_ERROR
164
- */
165
- extern DECLSPEC void SDLCALL SDL_LogError(int category, const char *fmt, ...);
166
-
167
- /**
168
- * \brief Log a message with SDL_LOG_PRIORITY_CRITICAL
169
- */
170
- extern DECLSPEC void SDLCALL SDL_LogCritical(int category, const char *fmt, ...);
171
-
172
- /**
173
- * \brief Log a message with the specified category and priority.
174
- */
175
- extern DECLSPEC void SDLCALL SDL_LogMessage(int category,
176
- SDL_LogPriority priority,
177
- const char *fmt, ...);
178
-
179
- /**
180
- * \brief Log a message with the specified category and priority.
181
- */
182
- extern DECLSPEC void SDLCALL SDL_LogMessageV(int category,
183
- SDL_LogPriority priority,
184
- const char *fmt, va_list ap);
185
-
186
- /**
187
- * \brief The prototype for the log output function
188
- */
189
- typedef void (*SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message);
190
-
191
- /**
192
- * \brief Get the current log output function.
193
- */
194
- extern DECLSPEC void SDLCALL SDL_LogGetOutputFunction(SDL_LogOutputFunction *callback, void **userdata);
195
-
196
- /**
197
- * \brief This function allows you to replace the default log output
198
- * function with one of your own.
199
- */
200
- extern DECLSPEC void SDLCALL SDL_LogSetOutputFunction(SDL_LogOutputFunction callback, void *userdata);
201
-
202
-
203
- /* Ends C function definitions when using C++ */
204
- #ifdef __cplusplus
205
- }
206
- #endif
207
- #include "close_code.h"
208
-
209
- #endif /* _SDL_log_h */
210
-
211
- /* vi: set ts=4 sw=4 expandtab: */