-
Notifications
You must be signed in to change notification settings - Fork 4
Input
We support a lot of different controllers in VRChat - keyboard + mouse, gamepad, a plethora of VR trackers, etc. We're opening up that further by enabling you to control most of the inputs over OSC as well! With this, you could create a program to control VRChat with your head, feet, brainwaves, a musical sequencer or just about anything else!
Each input watches for data at /input/Name
like /input/Jump
.
There are two types of inputs:
- Axes expect a float from -1 to 1 to control things like movement. They expect to reset to 0 when not in use - otherwise a 'MoveForward' message left at '1' will continue to move you forward forever!
- **Buttons ** expect an int of 1 for 'pressed' and 0 for 'released'.
A good way to get started with experiments is to controls to TouchOSC to test them out and see how they work in the client. Some will only work in Desktop or VR modes, and others may not do much at all. You can report controls that don't work the way you'd expect, or request additional controls, in our discussions area (COMING SOON).
This TouchOSC demo has a control for Vertical & Horizontal Movement, and a button for Jump: vrc-input.tosc
Axes
/input/Vertical
: Move forwards (1) or Backwards (-1)
/input/Horizontal
: Move right (1) or left (-1)
/input/LookHorizontal
: Look Left and Right
/input/LookVertical
: Look Up and Down - might not ever be possible?
/input/UseAxisRight
: Use held item - not sure if this works
/input/GrabAxisRight
: Grab item - not sure if this works
/input/MoveHoldFB
: Move a held object forwards (1) and backwards (-1)
/input/SpinHoldCwCcw
: Spin a held object Clockwise or Counter-Clockwise
/input/SpinHoldUD
: Spin a held object Up or Down
/input/SpinHoldLR
: Spin a held object Left or Right
Buttons
/input/MoveForward
/input/MoveBackward
/input/MoveLeft
/input/MoveRight
/input/LookLeft
/input/LookRight
/input/LookDown
/input/LookUp
/input/Jump
/input/Run
/input/Back
/input/Menu
/input/ComfortLeft
/input/ComfortRight
/input/DropRight
/input/UseRight
/input/GrabRight
/input/DropLeft
/input/UseLeft
/input/UseRight
/input/GrabLeft
/input/PanicButton
/input/QuickMenuToggleLeft
/input/QuickMenuToggleRight
/input/ToggleSitStand
/input/AFKToggle