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