Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Creates a complete immutable input snapshot.

API: scripting
Project: Inno.Input
Scope: Runtime

public InnoEngine.Input.InputSnapshot.InputSnapshot(long frameIndex, System.Collections.Generic.IEnumerable<InnoEngine.Input.KeyCode>? keysDown = null, System.Collections.Generic.IEnumerable<InnoEngine.Input.KeyCode>? keysPressed = null, System.Collections.Generic.IEnumerable<InnoEngine.Input.KeyCode>? keysReleased = null, System.Collections.Generic.IEnumerable<InnoEngine.Input.MouseButton>? mouseButtonsDown = null, System.Collections.Generic.IEnumerable<InnoEngine.Input.MouseButton>? mouseButtonsPressed = null, System.Collections.Generic.IEnumerable<InnoEngine.Input.MouseButton>? mouseButtonsReleased = null, InnoEngine.Mathematics.Vector2 mousePosition = default(InnoEngine.Mathematics.Vector2), InnoEngine.Mathematics.Vector2 mouseDelta = default(InnoEngine.Mathematics.Vector2), InnoEngine.Mathematics.Vector2 scrollDelta = default(InnoEngine.Mathematics.Vector2), InnoEngine.Input.KeyModifier modifiers = InnoEngine.Input.KeyModifier.None, System.Collections.Generic.IEnumerable<string>? textInput = null)

Parameter frameIndex: The runtime frame that owns the snapshot.

Parameter keysDown: Keys held at the frame boundary.

Parameter keysPressed: Keys newly pressed since the previous snapshot.

Parameter keysReleased: Keys newly released since the previous snapshot.

Parameter mouseButtonsDown: Pointer buttons held at the frame boundary.

Parameter mouseButtonsPressed: Pointer buttons newly pressed since the previous snapshot.

Parameter mouseButtonsReleased: Pointer buttons newly released since the previous snapshot.

Parameter mousePosition: Current pointer position in window coordinates.

Parameter mouseDelta: Pointer movement accumulated since the previous snapshot.

Parameter scrollDelta: Wheel movement accumulated since the previous snapshot.

Parameter modifiers: Active keyboard modifiers at the frame boundary.

Parameter textInput: Ordered Unicode text commits captured since the previous snapshot.