hedgewars/hwengine.pas
changeset 4845 9a0f5377c529
parent 4806 48c1a395f0a7
parent 4744 ecc2c757d0df
child 4849 e7b1f0aaf36f
equal deleted inserted replaced
4843:673f74c89687 4845:9a0f5377c529
   155                 SDL_WINDOWEVENT:
   155                 SDL_WINDOWEVENT:
   156                     if event.wevent.event = SDL_WINDOWEVENT_SHOWN then
   156                     if event.wevent.event = SDL_WINDOWEVENT_SHOWN then
   157                         cHasFocus:= true;
   157                         cHasFocus:= true;
   158 {$ELSE}
   158 {$ELSE}
   159                     KeyPressChat(event.key.keysym.unicode);
   159                     KeyPressChat(event.key.keysym.unicode);
   160                 SDL_MOUSEBUTTONDOWN: if event.button.button = SDL_BUTTON_WHEELDOWN then uKeys.wheelDown:= true;
   160                 SDL_MOUSEBUTTONDOWN: if event.button.button = SDL_BUTTON_WHEELDOWN then wheelDown:= true;
   161                 SDL_MOUSEBUTTONUP: if event.button.button = SDL_BUTTON_WHEELUP then uKeys.wheelUp:= true;
   161                 SDL_MOUSEBUTTONUP: if event.button.button = SDL_BUTTON_WHEELUP then wheelUp:= true;
   162                 SDL_ACTIVEEVENT:
   162                 SDL_ACTIVEEVENT:
   163                     if (event.active.state and SDL_APPINPUTFOCUS) <> 0 then
   163                     if (event.active.state and SDL_APPINPUTFOCUS) <> 0 then
   164                         cHasFocus:= event.active.gain = 1;
   164                         cHasFocus:= event.active.gain = 1;
   165 {$ENDIF}
   165 {$ENDIF}
   166                 SDL_JOYAXISMOTION: ControllerAxisEvent(event.jaxis.which, event.jaxis.axis, event.jaxis.value);
   166                 SDL_JOYAXISMOTION: ControllerAxisEvent(event.jaxis.which, event.jaxis.axis, event.jaxis.value);