]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/mouse.h
Normalize device axis ranges to [-1, 1]
[libs/gui.git] / source / input / mouse.h
index 8d5086f2d11654c7423dda2995d38e6d68d4a6b8..84f9ce0c87b49f4b7c54f5c046c3596501346e13 100644 (file)
@@ -14,15 +14,21 @@ Distributed under the LGPL
 namespace Msp {
 namespace Input {
 
+/**
+Mouse device.  Receives events from a Graphics::Window and presents them in a
+uniform way.
+
+Note: Y axis grows upwards.
+*/
 class Mouse: public Device
 {
 private:
        Graphics::Window &window;
-       float axis_scale;
 
 public:
        Mouse(Graphics::Window &);
        virtual std::string get_button_name(unsigned) const;
+       virtual std::string get_axis_name(unsigned) const;
 private:
        void button_press(int, int, unsigned, unsigned);
        void button_release(int, int, unsigned, unsigned);