equal
deleted
inserted
replaced
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); |