diff --git a/config-tool-web/code.js b/config-tool-web/code.js index 2a2c538..25261c2 100644 --- a/config-tool-web/code.js +++ b/config-tool-web/code.js @@ -1446,6 +1446,9 @@ function readable_usage_name(usage, default_to_hex = true) { if (usage in usages['source']) { return usages['source'][usage]['name']; } + if (usage in usages['source_extra']) { + return usages['source_extra'][usage]['name']; + } if (((usage & 0xFFFF0000) >>> 0) == BUTTON_USAGE_PAGE) { return 'Button ' + (usage & 0xFFFF); } diff --git a/config-tool-web/usages.js b/config-tool-web/usages.js index a391ee5..2caa1e4 100644 --- a/config-tool-web/usages.js +++ b/config-tool-web/usages.js @@ -41,6 +41,20 @@ const usages = { "0x0009000f": { 'name': 'Button 15', 'class': 'gamepad' }, "0x00090010": { 'name': 'Button 16', 'class': 'gamepad' }, }, + 'source_extra': { + "0x00010038": { 'name': 'V scroll', 'class': 'mouse' }, + "0x000c0238": { 'name': 'H scroll', 'class': 'mouse' }, + "0x00010032": { 'name': 'Right stick X', 'class': 'gamepad' }, + "0x00010035": { 'name': 'Right stick Y', 'class': 'gamepad' }, + "0xfff90001": { 'name': 'D-pad left', 'class': 'gamepad' }, + "0xfff90002": { 'name': 'D-pad right', 'class': 'gamepad' }, + "0xfff90003": { 'name': 'D-pad up', 'class': 'gamepad' }, + "0xfff90004": { 'name': 'D-pad down', 'class': 'gamepad' }, + "0x00010033": { 'name': 'L2 axis', 'class': 'gamepad' }, + "0x00010034": { 'name': 'R2 axis', 'class': 'gamepad' }, + "0x000200c5": { 'name': 'Brake', 'class': 'mouse' }, + "0x000200c4": { 'name': 'Accelerator', 'class': 'mouse' }, + }, 'source': { "0x000700e0": { 'name': 'Left Control', 'class': 'keyboard' }, "0x000700e1": { 'name': 'Left Shift', 'class': 'keyboard' },