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