XInputDevice Class
This is an input device. It contains a function to retrieve its state.
  • GPState(int) - This will retrieve the state of the buttons on the device if the device is an xbox 360 gamepad. If the device is a keyboard, use KBState() instead The parameter passed is the number of the state you wish to retrieve. If you want to get the device's current state, use 1. If you want to get the state of the device in the last frame, use 0.
  • KBState(int) - This will retrieve the state of the buttons on the device if the device is a keyboard. If the device is an Xbox 360 controller, use GPState() instead The parameter passed is the number of the state you wish to retrieve. If you want to get the device's current state, use 1. If you want to get the state of the device in the last frame, use 0.

Last edited Mar 23, 2008 at 12:37 AM by Hazardous101, version 2

Comments

No comments yet.