UI: Add analog speed limit mapping.

Only shows up as a setting if mapped, to avoid cluttering settings.
This commit is contained in:
Unknown W. Brackets committed 2022-07-04 19:14:05 -07:00
1 parent 536c050943
commit c15c4a6967
14 files changed
+113 -5

No files matched your search

+3
View File
@@ -337,6 +337,9 @@ bool KeyMappingNewKeyDialog::key(const KeyInput &key) {
if (key.keyCode == NKCODE_EXT_MOUSEBUTTON_1) {
return true;
}
// Only map analog values to this mapping.
if (pspBtn_ == VIRTKEY_SPEED_ANALOG)
return true;
mapped_ = true;
KeyDef kdf(key.deviceId, key.keyCode);