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;
21 virtual void set_block(bool) { }
22 virtual void set_inherit(bool) { }
25 virtual unsigned do_read(char *, unsigned);
26 virtual unsigned do_write(const char *, unsigned);
29 virtual const IO::Handle &get_handle(IO::Mode) { return handle; }
30 virtual const IO::Handle &get_event_handle() { return handle; }
34 struct GameController::Private
38 static std::vector<std::string> detected_controllers;