mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
Rename KeyDef to InputMapping and give it responsibility for Axis encoding
This commit is contained in:
1 parent
3c9e968ca0
commit
d00809ae53
13 files changed
+165
-204
No files matched your search
+1
-1
@@ -158,7 +158,7 @@ public:
|
||||
std::vector<int> pspKeys;
|
||||
bool showInfo = false;
|
||||
|
||||
if (KeyMap::KeyToPspButton(key.deviceId, key.keyCode, &pspKeys)) {
|
||||
if (KeyMap::InputMappingToPspButton(InputMapping(key.deviceId, key.keyCode), &pspKeys)) {
|
||||
for (auto it = pspKeys.begin(), end = pspKeys.end(); it != end; ++it) {
|
||||
// If the button mapped to triangle, then show the info.
|
||||
if (HasFocus() && (key.flags & KEY_UP) && *it == CTRL_TRIANGLE) {
|
||||
|
||||
Reference in new issue
Block a user