Skip to content

InputContext.SnapshotAxisState() Method

Definition

Namespace: Brine2D.Input

Promotes the previous frame's current axis state to the previous buffer, then captures a fresh snapshot of live axis values into the current buffer. Called at frame start so that Brine2D.Input.InputContext.IsGamepadAxisPressed\(Brine2D\.Input\.GamepadAxis,System\.Int32\) and Brine2D.Input.InputContext.IsGamepadAxisReleased\(Brine2D\.Input\.GamepadAxis,System\.Int32\) can compare last frame's state against this frame's live values.

C#
private void SnapshotAxisState();