LSL Game Control Beta

From Second Life Wiki
Jump to navigation Jump to search

LSL Game Control is a way for scripts in vehicles and attachments to use game controller input from devices such as Xbox, PS4/5 and joysticks. For example, a helicopter could more delicately maneuver, using input from the analog stick rather than WASD on a keyboard.

👉 For information about the LSL event and writing scripts that use game control see: game_control.

Instructions

  • Download and install the installer from Github
  • Plug in a compatible game controller device
  • Enable Develop menu Advanced > Show Develop Menu
  • Enable GameControl feature Develop --> Experimental Features --> GameControl
  • Open GameControl preferences Me --> Preferences... --> Game Control
    • Enable Send GameControl Data to server

If you don't have a game controller device you can still send some GameControl data to the server by translating avatar movement, but this must be enabled in the GameControl preferences

  • Open GameControl preferences Me --> Preferences... --> Game Control
    • Enable Avatar actions interpreted as GameControl