Synced
UiInputSnapshot.Constructor
Section titled “UiInputSnapshot.Constructor”
- Creates one backend-neutral UI input snapshot.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.UI
Declaration
Section titled “Declaration”public Inno.UI.UiInputSnapshot.UiInputSnapshot(Inno.Core.Mathematics.Vector2 mousePosition, Inno.Core.Mathematics.Vector2 scrollDelta, Inno.Core.Input.KeyModifier modifiers, System.Collections.Generic.IReadOnlyCollection<Inno.Core.Input.KeyCode> keysPressed, System.Collections.Generic.IReadOnlyCollection<Inno.Core.Input.KeyCode> keysReleased, System.Collections.Generic.IReadOnlyCollection<Inno.Core.Input.MouseButton> buttonsPressed, System.Collections.Generic.IReadOnlyCollection<Inno.Core.Input.MouseButton> buttonsReleased, System.Collections.Generic.IReadOnlyList<string> textInput)Parameters
Section titled “Parameters”Parameter mousePosition: Pointer position in surface coordinates.
Parameter scrollDelta: Pointer wheel movement.
Parameter modifiers: Active keyboard modifiers.
Parameter keysPressed: Physical keys pressed this frame.
Parameter keysReleased: Physical keys released this frame.
Parameter buttonsPressed: Pointer buttons pressed this frame.
Parameter buttonsReleased: Pointer buttons released this frame.
Parameter textInput: Ordered Unicode text commits.