InputSnapshot.Constructor
Section titled “InputSnapshot.Constructor”
- Creates a complete immutable input snapshot.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Input
Declaration
Section titled “Declaration”public Inno.Input.InputSnapshot.InputSnapshot(long frameIndex, System.Collections.Generic.IEnumerable<Inno.Core.Input.KeyCode>? keysDown = null, System.Collections.Generic.IEnumerable<Inno.Core.Input.KeyCode>? keysPressed = null, System.Collections.Generic.IEnumerable<Inno.Core.Input.KeyCode>? keysReleased = null, System.Collections.Generic.IEnumerable<Inno.Core.Input.MouseButton>? mouseButtonsDown = null, System.Collections.Generic.IEnumerable<Inno.Core.Input.MouseButton>? mouseButtonsPressed = null, System.Collections.Generic.IEnumerable<Inno.Core.Input.MouseButton>? mouseButtonsReleased = null, Inno.Core.Mathematics.Vector2 mousePosition = default(Inno.Core.Mathematics.Vector2), Inno.Core.Mathematics.Vector2 mouseDelta = default(Inno.Core.Mathematics.Vector2), Inno.Core.Mathematics.Vector2 scrollDelta = default(Inno.Core.Mathematics.Vector2), Inno.Core.Input.KeyModifier modifiers = Inno.Core.Input.KeyModifier.None, System.Collections.Generic.IEnumerable<string>? textInput = null)Parameters
Section titled “Parameters”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.