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
 
str preferred_input_mode = mode if mode in ["auto", "touch", "keyboard", "controller"] else "auto"
 Set the presentation/input preference.
 
 String
 Pick one prompt for the active device and controller label family.
 
return _ xbox
 
 active
 Return true exactly when the active input device changed this frame/update.
 
 last_controller_active = active
 
 labels
 
 colors
 
 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

◆ _

return input_manager._ xbox
protected

Definition at line 249 of file input_manager.gd.

◆ action

input_manager.action

Definition at line 85 of file input_manager.gd.

◆ action_bindings

input_manager.action_bindings

Definition at line 356 of file input_manager.gd.

◆ active

input_manager.active

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

Definition at line 254 of file input_manager.gd.

◆ axis

input_manager.axis

Definition at line 151 of file input_manager.gd.

◆ axis_value

input_manager.axis_value

Definition at line 152 of file input_manager.gd.

◆ bar

input_manager.bar

Definition at line 515 of file input_manager.gd.

◆ bindings

input_manager.bindings

Definition at line 352 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 80 of file input_manager.gd.

◆ button_index

input_manager.button_index

Definition at line 143 of file input_manager.gd.

◆ colors

input_manager.colors

Definition at line 274 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 177 of file input_manager.gd.

◆ current

input_manager.current = current.get_parent()

Definition at line 495 of file input_manager.gd.

◆ data

input_manager.data

Load action definitions from JSON.

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

Definition at line 49 of file input_manager.gd.

◆ data_cache_manager

input_manager.data_cache_manager

Definition at line 17 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 94 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 142 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 103 of file input_manager.gd.

◆ focus

input_manager.focus

Definition at line 482 of file input_manager.gd.

◆ focused_scroll

input_manager.focused_scroll

Definition at line 483 of file input_manager.gd.

◆ id

input_manager.id

Definition at line 56 of file input_manager.gd.

◆ keyboard_active

input_manager.keyboard_active = false

Definition at line 178 of file input_manager.gd.

◆ keycode

input_manager.keycode

Definition at line 385 of file input_manager.gd.

◆ labels

input_manager.labels

Definition at line 264 of file input_manager.gd.

◆ last_controller_active

input_manager.last_controller_active = active

Definition at line 257 of file input_manager.gd.

◆ list

input_manager.list

Definition at line 81 of file input_manager.gd.

◆ merged

input_manager.merged

Definition at line 341 of file input_manager.gd.

◆ mode_changed

input_manager.mode_changed

Definition at line 301 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 300 of file input_manager.gd.

◆ preferred_input_mode

str input_manager.preferred_input_mode = mode if mode in ["auto", "touch", "keyboard", "controller"] else "auto"

Set the presentation/input preference.

Auto follows the most recently used device.

Definition at line 195 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 336 of file input_manager.gd.

◆ saved_actions

input_manager.saved_actions

Definition at line 338 of file input_manager.gd.

◆ scroll

input_manager.scroll

Definition at line 287 of file input_manager.gd.

◆ scroll_vertical

input_manager.scroll_vertical

Definition at line 290 of file input_manager.gd.

◆ String

input_manager.String

Pick one prompt for the active device and controller label family.

Return prompt text for an action/device pair.

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

Return the label to show on an active gameplay slot.

Definition at line 243 of file input_manager.gd.

◆ viewport

input_manager.viewport

Definition at line 480 of file input_manager.gd.

◆ visible_scrolls

input_manager.visible_scrolls

Definition at line 486 of file input_manager.gd.