X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Ftouchscreen.h;h=d366a28f9f2c33c05f04369eb0601af1d34159a8;hb=27356249e3607c78f5da9823c88703a6f4f7bed1;hp=99432d22309a2e889e8910793dc4c461c133fca5;hpb=f9ebab54c3debe98e108790be9c21f43f4de116f;p=libs%2Fgui.git diff --git a/source/input/touchscreen.h b/source/input/touchscreen.h index 99432d2..d366a28 100644 --- a/source/input/touchscreen.h +++ b/source/input/touchscreen.h @@ -11,10 +11,7 @@ namespace Input { class Touchscreen: public Device, public sigc::trackable { private: - enum - { - UNUSED = static_cast(-1) - }; + static constexpr unsigned UNUSED = static_cast(-1); Graphics::Window &window; std::vector active_points; @@ -23,10 +20,12 @@ public: Touchscreen(Graphics::Window &); ~Touchscreen(); + static bool is_available(); + Graphics::Window &get_window() const { return window; } - virtual std::string get_button_name(unsigned) const; - virtual std::string get_axis_name(unsigned) const; + std::string get_button_name(unsigned) const override; + std::string get_axis_name(unsigned) const override; private: void input_event(const Graphics::Window::Event &);