mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Adds a function to get the cursor position in local coords
This commit is contained in:
parent
6479c7592a
commit
4ea3c90b5b
1 changed files with 3 additions and 0 deletions
|
|
@ -334,6 +334,9 @@ public:
|
||||||
/// Returns the point, in screenspace, at which the cursor is located.
|
/// Returns the point, in screenspace, at which the cursor is located.
|
||||||
virtual Point2I getCursorPos();
|
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.
|
/// Enable/disable rendering of the cursor.
|
||||||
/// @param state True if we should render cursor
|
/// @param state True if we should render cursor
|
||||||
virtual void showCursor(bool state);
|
virtual void showCursor(bool state);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue