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