From 8e95c0e44d9b97fb094a472d90671dba62388f3e Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 25 Apr 2020 19:40:21 +0200 Subject: [PATCH] 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) --- rpcs3/Input/evdev_joystick_handler.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rpcs3/Input/evdev_joystick_handler.h b/rpcs3/Input/evdev_joystick_handler.h index 03ba71b5e7..ad5fd0518a 100644 --- a/rpcs3/Input/evdev_joystick_handler.h +++ b/rpcs3/Input/evdev_joystick_handler.h @@ -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" },