]> git.mxchange.org Git - simgear.git/blobdiff - simgear/canvas/MouseEvent.hxx
First working version of DOM like Canvas event handling
[simgear.git] / simgear / canvas / MouseEvent.hxx
index 39a6404d7ffbfe905fcf15594f00deee7e31f6db..3193f27819e49cb7fa74374d77c1d05cfbc0e14b 100644 (file)
@@ -41,6 +41,12 @@ namespace canvas
       osg::Vec3f getPos3() const { return osg::Vec3f(pos, 0); }
       osg::Vec2f getDelta() const { return delta; }
 
+      float getPosX() const { return pos.x(); }
+      float getPosY() const { return pos.y(); }
+
+      float getDeltaX() const { return delta.x(); }
+      float getDeltaY() const { return delta.y(); }
+
       osg::Vec2f  pos,
                   delta;
       int         button, //<! Button for this event