Gamepad.GetCurrentReading Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.