Merge pull request #2096 from Areloch/GetCursorPosLocal

Adds a function to get the cursor position in local coords
This commit is contained in:
Areloch 2017-10-26 02:42:03 -05:00 committed by GitHub
commit 7f134ed76e

View file

@ -334,6 +334,9 @@ public:
/// Returns the point, in screenspace, at which the cursor is located.
virtual Point2I getCursorPos();
/// Returns the point, in local coordinates, at which the cursor is located
virtual Point2I getCursorPosLocal() { return Point2I(S32(mCursorPt.x), S32(mCursorPt.y)); }
/// Enable/disable rendering of the cursor.
/// @param state True if we should render cursor
virtual void showCursor(bool state);