]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/linux/gamecontroller_platform.h
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / input / linux / gamecontroller_platform.h
index 2951076806323b63a64d3a06863d93af10c637ed..86768751af3e185dd548e21162e41c07720ab039 100644 (file)
@@ -18,18 +18,22 @@ 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 = 0;
 
        static std::vector<std::string> detected_controllers;
 };