Synced
InputSnapshot
Section titled “InputSnapshot”
- Captures immutable keyboard and pointer state at one runtime frame boundary.
Required contracts
Section titled “Required contracts”API: scripting
Inherits: object
Project: Inno.Input
Scope: Runtime
Declaration
Section titled “Declaration”public sealed class InnoEngine.Input.InputSnapshotMembers
Section titled “Members”| 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. |