API > UserInput
UserInput⚓︎
This is an object that holds the value of user input.
Members⚓︎
Properties⚓︎
Name | Description |
---|---|
UserInput .ALT |
Desktop mode only, associated with button [Left Alt] in keyboard. |
UserInput .Crouch |
Desktop mode only, associated with button [C] in keyboard. |
UserInput .CTRL |
Desktop mode only, associated with button [Left Ctrl] in keyboard. |
UserInput .Jump |
Desktop mode jump [Space] button is pressed. |
UserInput .KeyboardArrows |
Arrow inputs from keyboard [up, down, left, right] when in Desktop Mode. |
UserInput .KeyboardMove |
Move Inputs from keyboard [W,S,A,D] when in desktop mode. |
UserInput .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. |
UserInput .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. |
UserInput .LeftPrimary |
Left controller primary button. Associated with [Space] button in keyboard while in desktop mode. |
UserInput .LeftSecondary |
Left controller secondary button. |
UserInput .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. |
UserInput .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. |
UserInput .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. |
UserInput .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. |
UserInput .RightPrimary |
Right controller primary button. Associated with [Space] button in keyboard while in desktop mode. |
UserInput .RightSecondary |
Right controller secondary button. |
UserInput .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. |
UserInput .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. |