RapidGameFramework
Reusable Godot managers for data-driven small games
Loading...
Searching...
No Matches
input_manager Namespace Reference

Variables

 DataCacheManager
 
 data_cache_manager
 
 data
 Load action definitions from JSON.
 
 id
 
 bool
 Return cache diagnostics for file-based convenience loads.
 
 list
 
 action
 
 definition
 Return whether an action may be user-remapped.
 
 float
 Ensure an action exists.
 
 event
 Add a joypad button binding to an action.
 
 button_index
 
 axis
 
 axis_value
 
 controller_active = true
 Return true when an action is currently pressed.
 
 keyboard_active = false
 
 active
 Return true when a joypad is connected or was the most recent input device.
 
 last_controller_active = active
 
 String
 Return the label to show on an active gameplay slot.
 
 labels
 
 colors
 
 amount
 
 scroll
 
 scroll_vertical
 
 onscreen_controls
 Apply common per-frame input affordances for menus and games.
 
 mode_changed
 
 prompts = state.get("prompts", prompts).duplicate(true)
 Return saveable prompt metadata.
 
 saved_actions
 
 merged
 
 bindings
 
 action_bindings
 
 keycode
 
 viewport
 
 focus
 
 focused_scroll
 
 visible_scrolls
 
 current = current.get_parent()
 
 bar
 

Variable Documentation

◆ action

input_manager.action

Definition at line 84 of file input_manager.gd.

◆ action_bindings

input_manager.action_bindings

Definition at line 309 of file input_manager.gd.

◆ active

input_manager.active

Return true when a joypad is connected or was the most recent input device.

Return true only when the controller was the most recent input device.

Return true when keyboard was the most recent gameplay input.

Return true exactly when the active input device changed this frame/update.

Definition at line 209 of file input_manager.gd.

◆ amount

input_manager.amount

Definition at line 237 of file input_manager.gd.

◆ axis

input_manager.axis

Definition at line 150 of file input_manager.gd.

◆ axis_value

input_manager.axis_value

Definition at line 151 of file input_manager.gd.

◆ bar

input_manager.bar

Definition at line 468 of file input_manager.gd.

◆ bindings

input_manager.bindings

Definition at line 305 of file input_manager.gd.

◆ bool

input_manager.bool

Return cache diagnostics for file-based convenience loads.

Return configured action definitions for a remap UI.

Definition at line 79 of file input_manager.gd.

◆ button_index

input_manager.button_index

Definition at line 142 of file input_manager.gd.

◆ colors

input_manager.colors

Definition at line 229 of file input_manager.gd.

◆ controller_active

input_manager.controller_active = true

Return true when an action is currently pressed.

Return true on the frame an action was pressed.

Remember whether recent input came from a controller.

Definition at line 176 of file input_manager.gd.

◆ current

input_manager.current = current.get_parent()

Definition at line 448 of file input_manager.gd.

◆ data

input_manager.data

Load action definitions from JSON.

Expected shape: { "actions": [{ "id": "accept", "label": "Accept", ... }] }.

Definition at line 48 of file input_manager.gd.

◆ data_cache_manager

input_manager.data_cache_manager

Definition at line 16 of file input_manager.gd.

◆ DataCacheManager

input_manager.DataCacheManager

Definition at line 9 of file input_manager.gd.

◆ definition

input_manager.definition

Return whether an action may be user-remapped.

Definition at line 93 of file input_manager.gd.

◆ event

input_manager.event

Add a joypad button binding to an action.

Add a touch/mouse button binding to an action.

Add a joypad axis direction binding to an action.

Definition at line 141 of file input_manager.gd.

◆ float

input_manager.float

Ensure an action exists.

Apply common per-frame input affordances for menus and games.

Scroll the most relevant visible ScrollContainer with the right stick.

Returns true when controller/touch presentation should be refreshed.

Definition at line 102 of file input_manager.gd.

◆ focus

input_manager.focus

Definition at line 435 of file input_manager.gd.

◆ focused_scroll

input_manager.focused_scroll

Definition at line 436 of file input_manager.gd.

◆ id

input_manager.id

Definition at line 55 of file input_manager.gd.

◆ keyboard_active

input_manager.keyboard_active = false

Definition at line 177 of file input_manager.gd.

◆ keycode

input_manager.keycode

Definition at line 338 of file input_manager.gd.

◆ labels

input_manager.labels

Definition at line 219 of file input_manager.gd.

◆ last_controller_active

input_manager.last_controller_active = active

Definition at line 212 of file input_manager.gd.

◆ list

input_manager.list

Definition at line 80 of file input_manager.gd.

◆ merged

input_manager.merged

Definition at line 294 of file input_manager.gd.

◆ mode_changed

input_manager.mode_changed

Definition at line 254 of file input_manager.gd.

◆ onscreen_controls

input_manager.onscreen_controls

Apply common per-frame input affordances for menus and games.

Returns true when controller/touch presentation should be refreshed.

Definition at line 253 of file input_manager.gd.

◆ prompts

input_manager.prompts = state.get("prompts", prompts).duplicate(true)

Return saveable prompt metadata.

InputMap bindings are engine state and should be serialized by games only when they offer user remapping.

Restore prompt metadata.

Definition at line 289 of file input_manager.gd.

◆ saved_actions

input_manager.saved_actions

Definition at line 291 of file input_manager.gd.

◆ scroll

input_manager.scroll

Definition at line 240 of file input_manager.gd.

◆ scroll_vertical

input_manager.scroll_vertical

Definition at line 243 of file input_manager.gd.

◆ String

input_manager.String

Return the label to show on an active gameplay slot.

Return prompt text for an action/device pair.

Return a consistent display color for controller face-button slots.

Definition at line 217 of file input_manager.gd.

◆ viewport

input_manager.viewport

Definition at line 433 of file input_manager.gd.

◆ visible_scrolls

input_manager.visible_scrolls

Definition at line 439 of file input_manager.gd.