ppsspp/Windows/InputDevice.cpp
Unknown W. Brackets 1218db02f5 Skip pads if their analog is not set.
Not sure if a deadzone is needed... or if some pads may do a constant
bottom left or something...
2013-04-06 20:17:36 -07:00

16 lines
440 B
C++

#include "InputDevice.h"
#include "XinputDevice.h"
#include "DinputDevice.h"
#include "KeyboardDevice.h"
#include <list>
#include <memory>
#define PUSH_BACK(Cls) do { list.push_back(std::shared_ptr<InputDevice>(new Cls())); } while (0)
std::list<std::shared_ptr<InputDevice>> getInputDevices() {
std::list<std::shared_ptr<InputDevice>> list;
PUSH_BACK(XinputDevice);
PUSH_BACK(DinputDevice);
PUSH_BACK(KeyboardDevice);
return list;
}