comparison src/video/quartz/SDL_QuartzVideo.h @ 4049:60f677630282 SDL-1.2

Added key composition support, courtesy of Kuon
author Sam Lantinga <slouken@libsdl.org>
date Wed, 11 Jul 2007 07:53:12 +0000
parents c5c3c772f5aa
children 58a5055da431
comparison
equal deleted inserted replaced
4048:3e380b8247aa 4049:60f677630282
97 SDL_Surface *resize_icon; /* icon for the resize badge, we have to draw it by hand */ 97 SDL_Surface *resize_icon; /* icon for the resize badge, we have to draw it by hand */
98 SDL_GrabMode current_grab_mode; /* default value is SDL_GRAB_OFF */ 98 SDL_GrabMode current_grab_mode; /* default value is SDL_GRAB_OFF */
99 SDL_Rect **client_mode_list; /* resolution list to pass back to client */ 99 SDL_Rect **client_mode_list; /* resolution list to pass back to client */
100 SDLKey keymap[256]; /* Mac OS X to SDL key mapping */ 100 SDLKey keymap[256]; /* Mac OS X to SDL key mapping */
101 Uint32 current_mods; /* current keyboard modifiers, to track modifier state */ 101 Uint32 current_mods; /* current keyboard modifiers, to track modifier state */
102 NSText *field_edit; /* a field editor for keyboard composition processing */
102 Uint32 last_virtual_button;/* last virtual mouse button pressed */ 103 Uint32 last_virtual_button;/* last virtual mouse button pressed */
103 io_connect_t power_connection; /* used with IOKit to detect wake from sleep */ 104 io_connect_t power_connection; /* used with IOKit to detect wake from sleep */
104 Uint8 expect_mouse_up; /* used to determine when to send mouse up events */ 105 Uint8 expect_mouse_up; /* used to determine when to send mouse up events */
105 Uint8 grab_state; /* used to manage grab behavior */ 106 Uint8 grab_state; /* used to manage grab behavior */
106 NSPoint cursor_loc; /* saved cursor coords, for activate/deactivate when grabbed */ 107 NSPoint cursor_loc; /* saved cursor coords, for activate/deactivate when grabbed */
144 #define resize_icon (this->hidden->resize_icon) 145 #define resize_icon (this->hidden->resize_icon)
145 #define current_grab_mode (this->hidden->current_grab_mode) 146 #define current_grab_mode (this->hidden->current_grab_mode)
146 #define client_mode_list (this->hidden->client_mode_list) 147 #define client_mode_list (this->hidden->client_mode_list)
147 #define keymap (this->hidden->keymap) 148 #define keymap (this->hidden->keymap)
148 #define current_mods (this->hidden->current_mods) 149 #define current_mods (this->hidden->current_mods)
150 #define field_edit (this->hidden->field_edit)
149 #define last_virtual_button (this->hidden->last_virtual_button) 151 #define last_virtual_button (this->hidden->last_virtual_button)
150 #define power_connection (this->hidden->power_connection) 152 #define power_connection (this->hidden->power_connection)
151 #define expect_mouse_up (this->hidden->expect_mouse_up) 153 #define expect_mouse_up (this->hidden->expect_mouse_up)
152 #define grab_state (this->hidden->grab_state) 154 #define grab_state (this->hidden->grab_state)
153 #define cursor_loc (this->hidden->cursor_loc) 155 #define cursor_loc (this->hidden->cursor_loc)