Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Captures immutable keyboard and pointer state at one runtime frame boundary.

API: engine
Inherits: object
Project: Inno.Input

public sealed class Inno.Input.InputSnapshot
Kind Element Description
Constructors InputSnapshot.Constructor Creates a complete immutable input snapshot.
Methods InputSnapshot.IsKeyDown Determines whether a key is currently held.
Methods InputSnapshot.IsMouseButtonDown Determines whether a pointer button is currently held.
Methods InputSnapshot.WasKeyPressed Determines whether a key was newly pressed during this frame.
Methods InputSnapshot.WasKeyReleased Determines whether a key was newly released during this frame.
Methods InputSnapshot.WasMouseButtonPressed Determines whether a pointer button was newly pressed during this frame.
Methods InputSnapshot.WasMouseButtonReleased Determines whether a pointer button was newly released during this frame.
Properties InputSnapshot.empty Gets an empty initial snapshot.
Properties InputSnapshot.frameIndex Gets the runtime frame that owns this snapshot.
Properties InputSnapshot.keysPressed Gets the physical keys newly pressed during this frame.
Properties InputSnapshot.keysReleased Gets the physical keys newly released during this frame.
Properties InputSnapshot.modifiers Gets the active keyboard modifier mask at this frame boundary.
Properties InputSnapshot.mouseButtonsPressed Gets the pointer buttons newly pressed during this frame.
Properties InputSnapshot.mouseButtonsReleased Gets the pointer buttons newly released during this frame.
Properties InputSnapshot.mouseDelta Gets pointer movement accumulated since the previous snapshot.
Properties InputSnapshot.mousePosition Gets the current pointer position in window coordinates.
Properties InputSnapshot.scrollDelta Gets wheel movement accumulated since the previous snapshot.
Properties InputSnapshot.textInput Gets the ordered UTF-8 text commits captured during this frame.