Mercurial > fife-parpg
diff engine/core/video/cursor.h @ 416:a8bb57884723
* Added a getX/getY command to the cursor
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 03 Feb 2010 18:59:34 +0000 |
parents | 51cc05d862f2 |
children | 5d6b1820b953 |
line wrap: on
line diff
--- a/engine/core/video/cursor.h Wed Feb 03 01:50:37 2010 +0000 +++ b/engine/core/video/cursor.h Wed Feb 03 18:59:34 2010 +0000 @@ -124,6 +124,14 @@ */ unsigned int getDragId() const { return m_drag_id; } + /** Gets the current mouse x position + */ + unsigned int getX() const {return m_mx;} + + /** Gets the current mouse y position + */ + unsigned int getY() const {return m_my;} + protected: /** Sets the cursor to a native type. * @param cursor_id Resource id to native cursor, or one of the values in NativeCursor @@ -156,6 +164,8 @@ int m_drag_offset_x; int m_drag_offset_y; + int m_mx; + int m_my; TimeManager* m_timemanager; };