1 #ifndef MSP_INPUT_GAMECONTROLLER_PLATFORM_H_
2 #define MSP_INPUT_GAMECONTROLLER_PLATFORM_H_
4 #include <msp/io/eventobject.h>
5 #include <msp/io/handle.h>
10 class JsDevice: public IO::EventObject
16 JsDevice(const std::string &);
19 std::string get_name() const;
22 virtual unsigned do_read(char *, unsigned);
23 virtual unsigned do_write(const char *, unsigned);
26 virtual const IO::Handle &get_event_handle() { return handle; }
30 struct GameController::Private
34 static std::vector<std::string> detected_controllers;