mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-03 13:01:55 +01:00
Generalize the code mapping android key events into pad button bits, add support for keys needed to navigate UI.
This commit is contained in:
1 parent
ef98d30c38
commit
7151e4c06e
6 files changed
+99
-69
No files matched your search
@@ -615,6 +615,7 @@ int main(int argc, char *argv[]) {
|
||||
key.keyCode = KeyMapRawSDLtoNative.find(k)->second;
|
||||
key.deviceId = DEVICE_ID_KEYBOARD;
|
||||
NativeKey(key);
|
||||
g_buttonTracker.Process(key);
|
||||
break;
|
||||
}
|
||||
case SDL_KEYUP:
|
||||
@@ -625,6 +626,7 @@ int main(int argc, char *argv[]) {
|
||||
key.keyCode = KeyMapRawSDLtoNative.find(k)->second;
|
||||
key.deviceId = DEVICE_ID_KEYBOARD;
|
||||
NativeKey(key);
|
||||
g_buttonTracker.Process(key);
|
||||
break;
|
||||
}
|
||||
case SDL_MOUSEBUTTONDOWN:
|
||||
|
||||
Reference in new issue
Block a user