PlayerControllerComponent Class
Definition
Namespace: Brine2D.Systems.Input
Component for player input control. Lives in Brine2D.Input.ECS because it's input-specific. Converts keyboard/gamepad input into movement velocity.
Inheritance System.Object → Component → PlayerControllerComponent
| Properties | |
|---|---|
| ActionMap | Optional action map for custom key bindings. When null, the system uses default WASD / arrow key bindings. Expected actions: "MoveUp", "MoveDown", "MoveLeft", "MoveRight". |
| GamepadIndex | Gamepad index \(for local multiplayer\). |
| InputDirection | Current input direction this frame \(calculated by system\). |
| InputMode | Input mode \(keyboard, gamepad, or both\). |
| IsMoving | Whether the player is currently moving \(has input\). |
| MoveSpeed | Movement speed in units per second. |
| NormalizeDiagonals | Whether to normalize diagonal movement \(prevents faster diagonal movement\). |