mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
16 lines
440 B
C++
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(KeyboardDevice);
|
|
PUSH_BACK(XinputDevice);
|
|
PUSH_BACK(DinputDevice);
|
|
return list;
|
|
}
|