comparison src/video/ataricommon/SDL_gemdosevents.c @ 2033:b657f0bc72c2

More work for 1.3
author Patrice Mandin <patmandin@gmail.com>
date Wed, 20 Sep 2006 21:29:44 +0000
parents f54073d86c82
children adf732f1f016
comparison
equal deleted inserted replaced
2032:ddf89133aebc 2033:b657f0bc72c2
104 SDL_PrivateKeyboard(SDL_RELEASED, 104 SDL_PrivateKeyboard(SDL_RELEASED,
105 SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE)); 105 SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE));
106 } 106 }
107 107
108 if (use_dev_mouse) { 108 if (use_dev_mouse) {
109 SDL_AtariDevMouse_PostMouseEvents(this, SDL_TRUE); 109 SDL_AtariDevMouse_PostMouseEvents(_this, SDL_TRUE);
110 } else { 110 } else {
111 SDL_AtariXbios_PostMouseEvents(this, SDL_TRUE); 111 SDL_AtariXbios_PostMouseEvents(_this, SDL_TRUE);
112 } 112 }
113 113
114 /* Will be previous table */ 114 /* Will be previous table */
115 SDL_memcpy(gemdos_previouskeyboard, gemdos_currentkeyboard, 115 SDL_memcpy(gemdos_previouskeyboard, gemdos_currentkeyboard,
116 sizeof(gemdos_previouskeyboard)); 116 sizeof(gemdos_previouskeyboard));
121 { 121 {
122 #define UPDATE_SPECIAL_KEYS(numbit,scancode) \ 122 #define UPDATE_SPECIAL_KEYS(numbit,scancode) \
123 { \ 123 { \
124 if (special_keys_state & (1<<(numbit))) { \ 124 if (special_keys_state & (1<<(numbit))) { \
125 gemdos_currentkeyboard[scancode]=0xFF; \ 125 gemdos_currentkeyboard[scancode]=0xFF; \
126 gemdos_currentascii[scancode]=0; \
127 } \ 126 } \
128 } 127 }
129 128
130 UPDATE_SPECIAL_KEYS(K_RSHIFT, SCANCODE_RIGHTSHIFT); 129 UPDATE_SPECIAL_KEYS(K_RSHIFT, SCANCODE_RIGHTSHIFT);
131 UPDATE_SPECIAL_KEYS(K_LSHIFT, SCANCODE_LEFTSHIFT); 130 UPDATE_SPECIAL_KEYS(K_LSHIFT, SCANCODE_LEFTSHIFT);