src/events/SDL_events.c
changeset 2129 047245361002
parent 1978 542c78b6fb12
child 2674 f1d07ba2e275
child 2735 204be4fc2726
equal deleted inserted replaced
2128:04e9ad5318dc 2129:047245361002
   109 
   109 
   110         /* Get events from the video subsystem */
   110         /* Get events from the video subsystem */
   111         if (_this) {
   111         if (_this) {
   112             _this->PumpEvents(_this);
   112             _this->PumpEvents(_this);
   113         }
   113         }
   114 
       
   115         /* Queue pending key-repeat events */
       
   116         SDL_CheckKeyRepeat();
       
   117 
       
   118 #if !SDL_JOYSTICK_DISABLED
   114 #if !SDL_JOYSTICK_DISABLED
   119         /* Check for joystick state change */
   115         /* Check for joystick state change */
   120         if (SDL_numjoysticks && (SDL_eventstate & SDL_JOYEVENTMASK)) {
   116         if (SDL_numjoysticks && (SDL_eventstate & SDL_JOYEVENTMASK)) {
   121             SDL_JoystickUpdate();
   117             SDL_JoystickUpdate();
   122         }
   118         }
   384 
   380 
   385         /* Get events from the video subsystem */
   381         /* Get events from the video subsystem */
   386         if (_this) {
   382         if (_this) {
   387             _this->PumpEvents(_this);
   383             _this->PumpEvents(_this);
   388         }
   384         }
   389 
       
   390         /* Queue pending key-repeat events */
       
   391         SDL_CheckKeyRepeat();
       
   392 
       
   393 #if !SDL_JOYSTICK_DISABLED
   385 #if !SDL_JOYSTICK_DISABLED
   394         /* Check for joystick state change */
   386         /* Check for joystick state change */
   395         if (SDL_numjoysticks && (SDL_eventstate & SDL_JOYEVENTMASK)) {
   387         if (SDL_numjoysticks && (SDL_eventstate & SDL_JOYEVENTMASK)) {
   396             SDL_JoystickUpdate();
   388             SDL_JoystickUpdate();
   397         }
   389         }