]> git.tdb.fi Git - libs/gui.git/commitdiff
Implement the required virtual functions in JsDevice
authorMikko Rasa <tdb@tdb.fi>
Mon, 4 Dec 2017 20:18:49 +0000 (22:18 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 4 Dec 2017 20:20:38 +0000 (22:20 +0200)
source/input/linux/gamecontroller_platform.h

index 2951076806323b63a64d3a06863d93af10c637ed..9fa7dcb2e0b5d9a544dce693c93d8d85354afa64 100644 (file)
@@ -18,11 +18,15 @@ public:
 
        std::string get_name() const;
 
+       virtual void set_block(bool) { }
+       virtual void set_inherit(bool) { }
+
 protected:
        virtual unsigned do_read(char *, unsigned);
        virtual unsigned do_write(const char *, unsigned);
 
 public:
+       virtual const IO::Handle &get_handle(IO::Mode) { return handle; }
        virtual const IO::Handle &get_event_handle() { return handle; }
 };