Platform Compatibility
PC | Mac OSX | Oculus Quest |
---|---|---|
X | X | – |
Check defined buttons
Buttons:
- Fire1
- Left Ctrl or Mouse Left Click or Joystick Button 0
- Fire2
- Left Alt or Mouse Right Click or Joystick Button 1
- Fire3
- Left Shift or Mouse Middle Click or Joystick Button 2
- Jump
- Spacebar or Joystick Button 3
- Fly
- F key or Joystick Button 2
- Sprint
- Left Shift
Parameters:
- button
- A string value
returns a Boolean (true or false) value
Example:
1 | obj.checkInput(button) |