InputManager

InputManager

Pure C# input manager for building systems Handles input state management, gesture detection, and input mappings Extracted from GBInputManager to enable unit testing and reusability

Project: GridPlacement v6.0
Layer: Godot
Source: Godot/Core/_incomplete/Systems/InputManager.cs
Namespace: GridBuilding.Core.Systems
Kind: class

Parsing Method: AST-based (Roslyn) - NOT regex

⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.

Properties

InputEnabled

GestureTimeout

GestureThreshold

MouseDelta

LastMousePosition

Methods

ProcessInput

Processes an input event and updates internal state

Returns: void

Parameters:

  • InputEventData inputEvent

Update

Updates axis states and gesture timeouts

Returns: void

Parameters:

  • double deltaTime

IsActionPressed

Checks if an action is currently pressed

Returns: bool

Parameters:

  • string actionName

GetAxis

Gets the current value of an axis

Returns: float

Parameters:

  • string axisName

AddInputMapping

Adds an input mapping

Returns: void

Parameters:

  • string actionName
  • InputMapping mapping

RemoveInputMappings

Removes input mappings for an action

Returns: void

Parameters:

  • string actionName

ClearInputState

Clears all input state

Returns: void

GetPressedActions

Gets all currently pressed actions

Returns: string[]

GetActiveGestures

Gets all active gestures

Returns: GestureType[]