namespace ML.SDK
Class | Sealed
UserInput
namespace ML.SDK
{
sealed class UserInput
}
Summary
This class contains values of user input.
Properties
Property | Desciption |
---|---|
Alt | Desktop mode only, associated with button [Left Alt] in keyboard. |
Crouch | Desktop mode only, associated with button [C] in keyboard. |
CTRL | Desktop mode only, associated with button [Left Ctrl] in keyboard. |
Jump | Desktop mode jump [Space] button is pressed. |
KeyboardArrows | Arrow inputs from keyboard [up, down, left, right] when in Desktop Mode. |
KeyboardMove | Move Inputs from keyboard [W,S,A,D] when in desktop mode. |
LeftControl | The left primary control vector2. In some controllers this is accomplished by trackpad, in others by a joystick. Returns values from keyboard buttons [W,S,A,D] while the client is in desktop mode. The x-axis represents the left-right movement of the joystick and the y-axis up-down movement. The values range from -1 to 1 and the center is zero for both. For the horizontal axis, the left is positive, and the right is negative. For vertical axis, the up is positive and down is negative. |
LeftGrab | The left controller grab button. It returns a value between 0 and 1, 1 being fully pressed. Associates to [q] button in desktop mode. |
LeftPrimary | Left controller primary button. Associated with [Space] button in keyboard while in desktop mode. |
LeftSecondary | Left controller secondary button. |
LeftSprint | The left sprint action. This action triggered differently in different controller types. In joystick-based controller this is accomplished by clicking the joystick. In trackpad-based controllers, this is accomplished by double taping the trackpad. Associated with [Left Shift] button in keyboard while in desktop mode. |
LeftTrigger | Left trigger button. The trigger button is the button pressed by index finger. It returns a value between 0 and 1, 1 being fully pressed. Associates to [Left Mouse Button] while in desktop mode. |
RightControl | The right primary control vector2. In some controllers this is accomplished by trackpad, in others by a joystick. Returns values from keyboard buttons [W,S,A,D] while the client is in desktop mode. The x-axis represents the left-right movement of the joystick and the y-axis up-down movement. The values range from -1 to 1 and the center is zero for both. For the horizontal axis, the left is positive, and the right is negative. For vertical axis, the up is positive and down is negative. |
RightGrab | The right controller grab button. It returns a value between 0 and 1, 1 being fully pressed. Associates to [e] button in desktop mode. |
RightPrimary | Right controller primary button. Associated with [Space] button in keyboard while in desktop mode. |
RightSecondary | Right controller secondary button. |
RightSprint | The right sprint action. This action triggered differently in different controller types. In joystick-based controller this is accomplished by clicking the joystick. In trackpad-based controllers, this is accomplished by double taping the trackpad. Associated with [Left Shift] button in keyboard while in desktop mode. |
RightTrigger | Right trigger button. The trigger button is the button pressed by index finger. It returns a value between 0 and 1, 1 being fully pressed. Associates to [Right Mouse Button] while in desktop mode. |