Skip to reading
PCA Script Programming

set_input_device()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Set Input Device | Action ID: SetInputDevice

Select auto, mouse-keyboard, gamepad or touch input mode.

Source table from set_input_device(), page 186
Option key / fieldMeaning and accepted inputDefault
Input Device deviceChoose: auto, mouse-keyboard, gamepad, touch."auto"

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
set_input_device({"device": "auto"})

In use. Choose Auto for normal play or force Gamepad while testing controller prompts. Forcing a device is not a substitute for having usable bindings and an actual controller available.

set_proximity_interaction_enabled()#

Proximity Interaction | Action ID: SetProximityInteractionEnabled

Enable or disable nearest/proximity-based interaction.

Source table from set_input_device(), page 186
Option key / fieldMeaning and accepted inputDefault
Enabled enabledExplicit on/off state for the feature or response.true

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
set_proximity_interaction_enabled({"enabled": true})

In use. Enable it for controller play in a small room. Check proximity radius, hotspot eligibility and line-of-play expectations so the nearest usable target is the one the player expects.

Page 186 of 357Permalink
Go to page