Delen via


Gamepad.GetCurrentReading Method

Definition

Gets a snapshot of the gamepad state.

public:
 virtual GamepadReading GetCurrentReading() = GetCurrentReading;
GamepadReading GetCurrentReading();
public GamepadReading GetCurrentReading();
function getCurrentReading()
Public Function GetCurrentReading () As GamepadReading

Returns

The current state of the gamepad.

Remarks

This method gets the state of the gamepad at the moment you call it. For example, if you press the A button, then release the A button, and then call GetCurrentReading, it will return that the A button is not currently pressed.

There is no need to "flush the state" because the state of the gamepad is updated automatically. This method just returns a snapshot of the current state.

Applies to

See also