Skip to main content

UserInput

General User Input for local player. Most of the inputs are designed to be independent of the players dominant hand selection, device or platform, or custom key bindings.

Members

Static Properties

NameDescription
UserInput.ALTButton Left Alt in keyboard. This input is desktop mode only.
UserInput.CPressButton C in keyboard. This input is desktop mode only.
UserInput.CTRLButton Left Ctrl in keyboard. This input is desktop mode only.
UserInput.Grip1Grip button 1. In default hand dominance mode this input maps to following controls: * Left controller grab button in VR Mode * The button Q in keyboard in Desktop/Webgl mode
UserInput.Grip2Grip button 2. In default hand dominance mode this input maps to following controls: * Right controller grab button in VR Mode * The button E in keyboard in Desktop/Webgl mode
UserInput.Joy1The Joystick 1, The "Movement". In default hand dominance mode, this input maps to the following controls:
UserInput.Joy2The Joystick 2, The "Movement". In default hand dominance mode, this input maps to the following controls: * Right controller Joystick in VR mode * Arrow keys in Desktop/Webgl mode
UserInput.JoyClick1Joystick click 1 In default hand dominance mode this input maps to following controls: * Left controller joystick click
UserInput.JoyClick2Joystick click 2 In default hand dominance mode this input maps to following controls: * Right controller joystick click
UserInput.Primary2Primary button 2, "Jump" In default hand dominance mode this input maps to following controls: * First button in Right VR Controller in VR Mode * Space button in Desktop/Webgl mode
UserInput.Secondary2Secondary button 2 In default hand dominance mode this input maps to following controls: * Second button in Right VR Controller in VR mode
UserInput.TriggerAxis1Trigger 1 value [0-1]. In default hand dominance mode this input maps to following controls: * Left controller trigger burron in VR Mode
UserInput.TriggerAxis2Trigger 2 value [0-1]. In default hand dominance mode this input maps to following controls: * Right controller trigger burron in VR Mode
UserInput.TriggerPress1Trigger 1 pressed. In default hand dominance mode this input maps to following controls: * Left controller trigger button in VR mode * Left Mouse button in Desktop/Webgl mode
UserInput.TriggerPress2Trigger 2 pressed. In default hand dominance mode this input maps to following controls: * Right controller trigger button in VR mode * Right Mouse button in Desktop/Webgl mode