comparison include/SDL_events.h @ 2300:c97ad1abe05b

Minimal implementation of textinput events for x11. It only works for latin-1.
author Bob Pendleton <bob@pendleton.com>
date Tue, 15 Jan 2008 22:37:17 +0000
parents 003c1b5b07da
children f1d07ba2e275 44e49d3fa6cf 64f346a83ed3
comparison
equal deleted inserted replaced
2299:a7cbc25071b6 2300:c97ad1abe05b
147 /** 147 /**
148 * \struct SDL_TextInputEvent 148 * \struct SDL_TextInputEvent
149 * 149 *
150 * \brief Keyboard text input event structure (event.text.*) 150 * \brief Keyboard text input event structure (event.text.*)
151 */ 151 */
152 #define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)
152 typedef struct SDL_TextInputEvent 153 typedef struct SDL_TextInputEvent
153 { 154 {
154 Uint8 type; /**< SDL_TEXTINPUT */ 155 Uint8 type; /**< SDL_TEXTINPUT */
155 Uint8 which; /**< The keyboard device index */ 156 Uint8 which; /**< The keyboard device index */
156 char text[32]; /**< The input text */ 157 char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; /**< The input text */
157 SDL_WindowID windowID; /**< The window with keyboard focus, if any */ 158 SDL_WindowID windowID; /**< The window with keyboard focus, if any */
158 } SDL_TextInputEvent; 159 } SDL_TextInputEvent;
159 160
160 /** 161 /**
161 * \struct SDL_MouseMotionEvent 162 * \struct SDL_MouseMotionEvent
162 * 163 *
323 typedef union SDL_Event 324 typedef union SDL_Event
324 { 325 {
325 Uint8 type; /**< Event type, shared with all events */ 326 Uint8 type; /**< Event type, shared with all events */
326 SDL_WindowEvent window; /**< Window event data */ 327 SDL_WindowEvent window; /**< Window event data */
327 SDL_KeyboardEvent key; /**< Keyboard event data */ 328 SDL_KeyboardEvent key; /**< Keyboard event data */
328 SDL_TextInputEvent text; /**< Text input event data */ 329 SDL_TextInputEvent text; /**< Text input event data */
329 SDL_MouseMotionEvent motion; /**< Mouse motion event data */ 330 SDL_MouseMotionEvent motion; /**< Mouse motion event data */
330 SDL_MouseButtonEvent button; /**< Mouse button event data */ 331 SDL_MouseButtonEvent button; /**< Mouse button event data */
331 SDL_MouseWheelEvent wheel; /**< Mouse wheel event data */ 332 SDL_MouseWheelEvent wheel; /**< Mouse wheel event data */
332 SDL_JoyAxisEvent jaxis; /**< Joystick axis event data */ 333 SDL_JoyAxisEvent jaxis; /**< Joystick axis event data */
333 SDL_JoyBallEvent jball; /**< Joystick ball event data */ 334 SDL_JoyBallEvent jball; /**< Joystick ball event data */
334 SDL_JoyHatEvent jhat; /**< Joystick hat event data */ 335 SDL_JoyHatEvent jhat; /**< Joystick hat event data */
335 SDL_JoyButtonEvent jbutton; /**< Joystick button event data */ 336 SDL_JoyButtonEvent jbutton; /**< Joystick button event data */
336 SDL_QuitEvent quit; /**< Quit request event data */ 337 SDL_QuitEvent quit; /**< Quit request event data */