get_player_input
Reads what a player is pressing right now by resolving the PlayerController for a local player index and returning pressed keys. Requires a live PIE/game session.
Instructions
Read what a player is pressing RIGHT NOW: resolves the PlayerController for a local player index and returns it plus the currently pressed keys. Runtime state, so it needs a live PIE/game session -- an empty pressed_keys outside PIE means nothing. For which keys are BOUND (a static question) use list_all_input_mappings instead; to make an action fire use trigger_input_action.
Returns: { player_controller, pressed_keys }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| player_index | No | Player controller index to query (default 0). |