mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-19 20:34:26 +01:00
Work towards full android joystick support.
This commit is contained in:
1 parent
f4578129ef
commit
1dec6e8154
14 files changed
+431
-231
No files matched your search
+10
-7
@@ -538,14 +538,17 @@ int main(int argc, char *argv[]) {
|
||||
if (event.key.keysym.sym == SDLK_ESCAPE) {
|
||||
quitRequested = 1;
|
||||
}
|
||||
|
||||
KeyQueueAttemptTranslatedAdd(input_state.key_queue,
|
||||
KeyMapRawSDLtoNative,
|
||||
event.key.keysym.sym);
|
||||
KeyInput key;
|
||||
key.flags = KEY_DOWN;
|
||||
key.keyCode = KeyMapRawSDLtoNative[event.key.keysym.sym];
|
||||
key.deviceId = 0;
|
||||
NativeKey(key);
|
||||
} else if (event.type == SDL_KEYUP) {
|
||||
KeyQueueAttemptTranslatedRemove(input_state.key_queue,
|
||||
KeyMapRawSDLtoNative,
|
||||
event.key.keysym.sym);
|
||||
KeyInput key;
|
||||
key.flags = KEY_UP;
|
||||
key.keyCode = KeyMapRawSDLtoNative[event.key.keysym.sym];
|
||||
key.deviceId = 0;
|
||||
NativeKey(key);
|
||||
} else if (event.type == SDL_MOUSEBUTTONDOWN) {
|
||||
if (event.button.button == SDL_BUTTON_LEFT) {
|
||||
input_state.pointer_x[0] = mx;
|
||||
|
||||
Reference in new issue
Block a user