Skip to main content
namespace ML.SDK
Class | Sealed

UserInput


namespace ML.SDK
{
sealed class UserInput
}

Summary

This class contains values of user input.

Properties

PropertyDesciption
AltDesktop mode only, associated with button [Left Alt] in keyboard.
CrouchDesktop mode only, associated with button [C] in keyboard.
CTRLDesktop mode only, associated with button [Left Ctrl] in keyboard.
JumpDesktop mode jump [Space] button is pressed.
KeyboardArrowsArrow inputs from keyboard [up, down, left, right] when in Desktop Mode.
KeyboardMoveMove Inputs from keyboard [W,S,A,D] when in desktop mode.
LeftControlThe 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.
LeftGrabThe left controller grab button. It returns a value between 0 and 1, 1 being fully pressed. Associates to [q] button in desktop mode.
LeftPrimaryLeft controller primary button. Associated with [Space] button in keyboard while in desktop mode.
LeftSecondaryLeft controller secondary button.
LeftSprintThe 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.
LeftTriggerLeft 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.
RightControlThe 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.
RightGrabThe right controller grab button. It returns a value between 0 and 1, 1 being fully pressed. Associates to [e] button in desktop mode.
RightPrimaryRight controller primary button. Associated with [Space] button in keyboard while in desktop mode.
RightSecondaryRight controller secondary button.
RightSprintThe 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.
RightTriggerRight 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.