evdev: add keys used by wii controller driver

I'll probably rework the current system sometime soon so that I don't have to add keys every now and then
(or I'll just add them all XD)
This commit is contained in:
Megamouse 2020-04-25 19:40:21 +02:00
parent 58ba6d68bb
commit 8e95c0e44d

View File

@ -84,6 +84,13 @@ class evdev_joystick_handler final : public PadHandlerBase
// Xbox One S Controller returns some buttons as key when connected through bluetooth
{ KEY_BACK , "Back Key" },
{ KEY_HOMEPAGE , "Homepage Key"},
// Wii/Wii U Controller drivers use the following few keys
{ KEY_UP , "Up Key" },
{ KEY_LEFT , "Left Key" },
{ KEY_RIGHT , "Right Key" },
{ KEY_DOWN , "Down Key" },
{ KEY_NEXT , "Next Key" },
{ KEY_PREVIOUS , "Previous Key"},
//{ BTN_MISC , "Misc" }, same as BTN_0
{ BTN_0 , "0" },
{ BTN_1 , "1" },