X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Ftouchscreen.h;h=d366a28f9f2c33c05f04369eb0601af1d34159a8;hb=27356249e3607c78f5da9823c88703a6f4f7bed1;hp=363111cd3ea18e5936590c12bb3b20099103c96d;hpb=1d7113259625a91f5f6d2f53365aad22ae744689;p=libs%2Fgui.git diff --git a/source/input/touchscreen.h b/source/input/touchscreen.h index 363111c..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,8 +20,12 @@ public: Touchscreen(Graphics::Window &); ~Touchscreen(); - virtual std::string get_button_name(unsigned) const; - virtual std::string get_axis_name(unsigned) const; + static bool is_available(); + + Graphics::Window &get_window() const { return window; } + + std::string get_button_name(unsigned) const override; + std::string get_axis_name(unsigned) const override; private: void input_event(const Graphics::Window::Event &);