]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/linux/gamecontroller_platform.h
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / input / linux / gamecontroller_platform.h
index cd6383984f73d0b03d2647bb556e7a28d04e30e2..224450e0cccf6aec8421770c7eb41f1329a737f8 100644 (file)
@@ -18,18 +18,24 @@ public:
 
        std::string get_name() const;
 
+       void set_block(bool) override { }
+       void set_inherit(bool) override { }
+
 protected:
-       virtual unsigned do_read(char *, unsigned);
-       virtual unsigned do_write(const char *, unsigned);
+       std::size_t do_read(char *, std::size_t) override;
+       std::size_t do_write(const char *, std::size_t) override;
 
 public:
-       virtual const IO::Handle &get_event_handle() { return handle; }
+       const IO::Handle &get_handle(IO::Mode) override { return handle; }
+       const IO::Handle &get_event_handle() override { return handle; }
 };
 
 
 struct GameController::Private
 {
-       JsDevice *dev;
+       JsDevice *dev = nullptr;
+
+       static std::vector<std::string> detected_controllers;
 };
 
 } // namespace Input