Rename KeyDef to InputMapping and give it responsibility for Axis encoding

This commit is contained in:
Henrik Rydgård committed 2023-03-29 11:59:31 +02:00
1 parent 3c9e968ca0
commit d00809ae53
13 files changed
+165 -204

No files matched your search

+1 -1
View File
@@ -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) {