Quest Mouse provides functions to access mouse input, while allowing the input system being used to change when necessary.
eg. if ( QuestMouse.LeftButtonUp ) Display: The player left clicked.
Advanced: Use an alternative input system by implementing the IQuestMouseHandler function and calling QuestMouse.SetHandler<MyOwnInputSystem>();
|
|
static IQuestMouseHandler | Handler [get] |
| |
| static Vector2 | mousePosition [get] |
| | The current mouse position in pixel coordinates. (Read Only).
|
| |
| static Vector2 | mousePositionDelta [get] |
| | The change in mouse position since last frame in pixel coordinates. (Unity 2022.2 and later only) (Read Only).
|
| |
| static Vector2 | mouseScrollDelta [get] |
| | The current mouse position scroll wheel offset (Read Only).
|
| |
| static Vector2 | Position [get] |
| | The current mouse position in pixel coordinates. (Read Only).
|
| |
| static Vector2 | PositionDelta [get] |
| | The change in mouse position since last frame in pixel coordinates. (Unity 2022.2 and later only) (Read Only).
|
| |
| static Vector2 | ScrollDelta [get] |
| | The current mouse position scroll wheel offset (Read Only).
|
| |
| static bool | LeftButton [get] |
| | Returns whether the left mouse button is held down.
|
| |
| static bool | LeftButtonDown [get] |
| | Returns whether the left mouse button was pressed this frame.
|
| |
| static bool | LeftButtonUp [get] |
| | Returns whether the left mouse button was released this frame.
|
| |
| static bool | RightButton [get] |
| | Returns whether the right mouse button is held down.
|
| |
| static bool | RightButtonDown [get] |
| | Returns whether the right mouse button was pressed this frame.
|
| |
| static bool | RightButtonUp [get] |
| | Returns whether the right mouse button was released this frame.
|
| |
| static bool | MiddleButton [get] |
| | Returns whether the middle mouse button is held down.
|
| |
| static bool | MiddleButtonDown [get] |
| | Returns whether the middle mouse button was pressed this frame.
|
| |
| static bool | MiddleButtonUp [get] |
| | Returns whether the middle mouse button was released this frame.
|
| |
|
| static void | SetHandlerToDefault () |
| | Sets the mouse handler to the default (Unity's legacy input system)
|
| |
| static void | SetHandler< MOUSEHANDLER > () |
| | Allows you to override the input system used for the mouse with a different IQuestMouseHandler.
|
| |
| static bool | GetMouseButton (int button) |
| | Returns whether the given mouse button is held down.
|
| |
| static bool | GetMouseButtonDown (int button) |
| | Returns whether the given mouse button is pressed this frame.
|
| |
| static bool | GetMouseButtonUp (int button) |
| | Returns whether the given mouse button is released this frame.
|
| |
| static bool | GetButton (int button) |
| | Returns whether the given mouse button is held down.
|
| |
| static bool | GetButtonDown (int button) |
| | Returns whether the given mouse button is pressed this frame.
|
| |
| static bool | GetButtonUp (int button) |
| | Returns whether the given mouse button is released this frame.
|
| |