2012-11-12 17:32:35 +00:00
|
|
|
#include "InputDevice.h"
|
|
|
|
#include "XinputDevice.h"
|
2013-04-01 01:55:38 +00:00
|
|
|
#include "DinputDevice.h"
|
2012-11-12 17:32:35 +00:00
|
|
|
#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;
|
2013-04-01 18:15:16 +00:00
|
|
|
PUSH_BACK(KeyboardDevice);
|
2012-11-12 17:32:35 +00:00
|
|
|
PUSH_BACK(XinputDevice);
|
2013-04-01 01:55:38 +00:00
|
|
|
PUSH_BACK(DinputDevice);
|
2012-11-12 17:32:35 +00:00
|
|
|
return list;
|
|
|
|
}
|