Meta SDK2 Beta  2.7.0
Meta.Mouse.IInputWrapper Interface Reference

Interface for wrapper around input More...

Inherited by Meta.Mouse.UnityInputWrapper.

Public Member Functions

Vector3 GetMousePosition ()
 Gets the local mouse position relative to the Unity game window More...
 
Vector2 GetMouseScrollDelta ()
 Gets scrolling of mouse wheel More...
 
float GetAxis (string axisName)
 Gets the movement of a mouse axis More...
 
bool GetMouseButton (int button)
 Gets whether the mouse button is currently pressed More...
 
bool GetMouseButtonUp (int button)
 Gets whether a mouse button was unclicked that frame More...
 
bool GetMouseButtonDown (int button)
 Gets whether a mouse button was clicked that frame More...
 
Rect GetScreenRect ()
 Gets the rect of the Unity game window in pixels More...
 

Properties

CursorLockMode LockState [get, set]
 
bool Visible [get, set]
 Set visibility on cursor. More...
 

Detailed Description

Interface for wrapper around input

Member Function Documentation

◆ GetAxis()

float Meta.Mouse.IInputWrapper.GetAxis ( string  axisName)

Gets the movement of a mouse axis

◆ GetMouseButton()

bool Meta.Mouse.IInputWrapper.GetMouseButton ( int  button)

Gets whether the mouse button is currently pressed

◆ GetMouseButtonDown()

bool Meta.Mouse.IInputWrapper.GetMouseButtonDown ( int  button)

Gets whether a mouse button was clicked that frame

◆ GetMouseButtonUp()

bool Meta.Mouse.IInputWrapper.GetMouseButtonUp ( int  button)

Gets whether a mouse button was unclicked that frame

◆ GetMousePosition()

Vector3 Meta.Mouse.IInputWrapper.GetMousePosition ( )

Gets the local mouse position relative to the Unity game window

◆ GetMouseScrollDelta()

Vector2 Meta.Mouse.IInputWrapper.GetMouseScrollDelta ( )

Gets scrolling of mouse wheel

◆ GetScreenRect()

Rect Meta.Mouse.IInputWrapper.GetScreenRect ( )

Gets the rect of the Unity game window in pixels

Property Documentation

◆ LockState

CursorLockMode Meta.Mouse.IInputWrapper.LockState
getset

◆ Visible

bool Meta.Mouse.IInputWrapper.Visible
getset

Set visibility on cursor.