Joystick support using mmsystem library on windows (#2355)

* Joystick support using mmsystem library on windows

* fixed signed/unsigned issues with axes

* joystick buttons are now configurable
This commit is contained in:
georgemoralis 2017-02-10 14:28:00 +02:00 committed by Ivan
parent a1189fa37a
commit 6023794081
5 changed files with 251 additions and 0 deletions

View file

@ -19,6 +19,7 @@
#include "KeyboardPadHandler.h"
#ifdef _MSC_VER
#include "XInputPadHandler.h"
#include "MMJoystickHandler.h"
#endif
#include "Emu/RSX/Null/NullGSRender.h"
@ -87,6 +88,7 @@ cfg::map_entry<std::function<std::shared_ptr<PadHandlerBase>()>> g_cfg_pad_handl
{ "Keyboard", &std::make_shared<KeyboardPadHandler> },
#ifdef _MSC_VER
{ "XInput", &std::make_shared<XInputPadHandler> },
{ "MMJoystick", &std::make_shared<MMJoystickHandler>},
#endif
});