KEYMAPPER: Enable remapping of the mouse buttons

This commit is contained in:
Bastien Bouclet 2020-01-28 18:44:08 +01:00
parent 519b4a57e2
commit e973092aef
9 changed files with 161 additions and 44 deletions

View file

@ -403,6 +403,7 @@ Common::HardwareInputSet *OSystem_SDL::getHardwareInputSet() {
using namespace Common;
CompositeHardwareInputSet *inputSet = new CompositeHardwareInputSet();
inputSet->addHardwareInputSet(new MouseHardwareInputSet(defaultMouseButtons));
inputSet->addHardwareInputSet(new KeyboardHardwareInputSet(defaultKeys, defaultModifiers));
bool joystickSupportEnabled = ConfMan.getInt("joystick_num") >= 0;