Input
Handle avatar controls and inspect game-control modes.
Feature: Input
What do you want to do?
llTakeControls(integer controls, integer accept, integer pass_on)Intercepts inputs (keyboard/mouse clicks) from the agent, specifically those specified by controls. The boolean accept determines if events are generated, and pass_on determines if inputs also perform their default functions. Requires the PERMISSION_TAKE_CONTROLS runtime permission.llReleaseControls()Stops taking inputs (previously acquired via llTakeControls) from the avatar, dequeuing any remaining control events and revoking the PERMISSION_TAKE_CONTROLS permission.integer llGetGameControlMode(key id)Returns a GAME_CONTROL_MODE_* integer indicating the current game-control mode for the avatar specified by id.Reference
8 topic entries
integer llGetGameControlMode(key id)functionReturns a GAME_CONTROL_MODE_* integer indicating the current game-control mode for the avatar specified by id.
list llGetGameControlModeAxes(key id)functionReturns a list of floats representing the modal axes for the current game-control mode of the avatar specified by id. Element count and index meanings vary by mode; use the GAME_CONTROL_AXIS_* constants as indices.
integer llGetGameControlModeButtons(key id)functionReturns a bitmask of the modal buttons currently active for the current game-control mode of the avatar specified by id. Bit meanings vary by mode; use the GAME_CONTROL_BUTTON_* constants as masks.
llReleaseControls()functionStops taking inputs (previously acquired via
llTakeControls) from the avatar, dequeuing any remaining control events and revoking thePERMISSION_TAKE_CONTROLSpermission.llSetClickAction(integer action)functionSets the action (a CLICK_ACTION_* flag) performed when an avatar left-clicks the prim.
llTakeControls(integer controls, integer accept, integer pass_on)functionIntercepts inputs (keyboard/mouse clicks) from the agent, specifically those specified by controls. The boolean accept determines if events are generated, and pass_on determines if inputs also perform their default functions. Requires the
PERMISSION_TAKE_CONTROLSruntime permission.control(key id, integer level, integer edge)eventTriggered to pass captured avatar control inputs into the script. The parameter level indicates held controls, and edge indicates change in controls (both are bitfields of CONTROL_* constants).
game_control(key id, integer button_levels, list axes)eventTriggered when a compatible viewer sends game controller input changes for the avatar specified by id. Only triggers for scripts in attachments or seats.
No matching entries. Try a different term or filter.