src/video/ataricommon/SDL_biosevents.c
changeset 2033 b657f0bc72c2
parent 2031 f54073d86c82
child 2043 adf732f1f016
equal deleted inserted replaced
2032:ddf89133aebc 2033:b657f0bc72c2
    97             SDL_PrivateKeyboard(SDL_RELEASED,
    97             SDL_PrivateKeyboard(SDL_RELEASED,
    98                                 SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE));
    98                                 SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE));
    99     }
    99     }
   100 
   100 
   101     if (use_dev_mouse) {
   101     if (use_dev_mouse) {
   102         SDL_AtariDevMouse_PostMouseEvents(this, SDL_TRUE);
   102         SDL_AtariDevMouse_PostMouseEvents(_this, SDL_TRUE);
   103     } else {
   103     } else {
   104         SDL_AtariXbios_PostMouseEvents(this, SDL_TRUE);
   104         SDL_AtariXbios_PostMouseEvents(_this, SDL_TRUE);
   105     }
   105     }
   106 
   106 
   107     /* Will be previous table */
   107     /* Will be previous table */
   108     SDL_memcpy(bios_previouskeyboard, bios_currentkeyboard,
   108     SDL_memcpy(bios_previouskeyboard, bios_currentkeyboard,
   109                sizeof(bios_previouskeyboard));
   109                sizeof(bios_previouskeyboard));
   114 {
   114 {
   115 #define UPDATE_SPECIAL_KEYS(numbit,scancode) \
   115 #define UPDATE_SPECIAL_KEYS(numbit,scancode) \
   116 	{	\
   116 	{	\
   117 		if (special_keys_state & (1<<(numbit))) { \
   117 		if (special_keys_state & (1<<(numbit))) { \
   118 			bios_currentkeyboard[scancode]=0xFF; \
   118 			bios_currentkeyboard[scancode]=0xFF; \
   119 			bios_currentascii[scancode]=0; \
       
   120 		}	\
   119 		}	\
   121 	}
   120 	}
   122 
   121 
   123     UPDATE_SPECIAL_KEYS(K_RSHIFT, SCANCODE_RIGHTSHIFT);
   122     UPDATE_SPECIAL_KEYS(K_RSHIFT, SCANCODE_RIGHTSHIFT);
   124     UPDATE_SPECIAL_KEYS(K_LSHIFT, SCANCODE_LEFTSHIFT);
   123     UPDATE_SPECIAL_KEYS(K_LSHIFT, SCANCODE_LEFTSHIFT);