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;
|
|
|
|
PUSH_BACK(XinputDevice);
|
2013-04-01 01:55:38 +00:00
|
|
|
PUSH_BACK(DinputDevice);
|
2013-04-07 03:17:36 +00:00
|
|
|
PUSH_BACK(KeyboardDevice);
|
2012-11-12 17:32:35 +00:00
|
|
|
return list;
|
|
|
|
}
|