Skip to content

Input ๐Ÿ•น

Leon Schimmel edited this page Feb 27, 2025 · 2 revisions

Work with keyboard input โŒจ

To use input features you need to add the namespace ConsoleNexusEngine.IO

Inside the ConsoleGame.Update method you get the input from last frame as NexusInputCollection. NexusInputCollection contains following inputs.

  • The mouse position as NexusCoord
  • All pressed keyboard keys as ImmutableArray<NexusKey>
  • All gamepad inputs depending on how much gamepads are connected and used (Up to 4 at a time) as ImmutableArray<NexusGamepad>

Clone this wiki locally