hedgewars/hwengine.pas
branch0.9.15
changeset 4744 ecc2c757d0df
parent 4490 f6840f7e2f60
child 4773 69f8431a5d20
child 4845 9a0f5377c529
equal deleted inserted replaced
4742:0317c797195a 4744:ecc2c757d0df
   154                 SDL_WINDOWEVENT:
   154                 SDL_WINDOWEVENT:
   155                     if event.wevent.event = SDL_WINDOWEVENT_SHOWN then
   155                     if event.wevent.event = SDL_WINDOWEVENT_SHOWN then
   156                         cHasFocus:= true;
   156                         cHasFocus:= true;
   157 {$ELSE}
   157 {$ELSE}
   158                     KeyPressChat(event.key.keysym.unicode);
   158                     KeyPressChat(event.key.keysym.unicode);
   159                 SDL_MOUSEBUTTONDOWN: if event.button.button = SDL_BUTTON_WHEELDOWN then uKeys.wheelDown:= true;
   159                 SDL_MOUSEBUTTONDOWN: if event.button.button = SDL_BUTTON_WHEELDOWN then wheelDown:= true;
   160                 SDL_MOUSEBUTTONUP: if event.button.button = SDL_BUTTON_WHEELUP then uKeys.wheelUp:= true;
   160                 SDL_MOUSEBUTTONUP: if event.button.button = SDL_BUTTON_WHEELUP then wheelUp:= true;
   161                 SDL_ACTIVEEVENT:
   161                 SDL_ACTIVEEVENT:
   162                     if (event.active.state and SDL_APPINPUTFOCUS) <> 0 then
   162                     if (event.active.state and SDL_APPINPUTFOCUS) <> 0 then
   163                         cHasFocus:= event.active.gain = 1;
   163                         cHasFocus:= event.active.gain = 1;
   164 {$ENDIF}
   164 {$ENDIF}
   165                 SDL_JOYAXISMOTION: ControllerAxisEvent(event.jaxis.which, event.jaxis.axis, event.jaxis.value);
   165                 SDL_JOYAXISMOTION: ControllerAxisEvent(event.jaxis.which, event.jaxis.axis, event.jaxis.value);