#include "source-device.h"
Go to the source code of this file.
Namespaces | |
| namespace | gamepad |
Functions | |
| byte_t | gamepad::updateButton (IN byte_t oldBitFlags, IN bool isButtonDown) throw () |
| helper method to update a button value. | |
| void | gamepad::snapshotState (IN SourceDevice *device, OUT device_state_t &state) |
| take a state snapshot | |
| int | gamepad::buttonDown (IN const device_state_t &state) |
| is a single button down? | |
| int | gamepad::buttonChanged (IN const device_state_t &oldState, IN const device_state_t &newState) |
| compare new and old states: did a single button change state? | |
| int | gamepad::buttonReleased (IN const device_state_t &state) |
| was a button released? | |
| bool | gamepad::potsCalibrated (IN const device_state_t &oldState, IN const device_state_t &newState) |
| compare new and old states: are all potentiometers calibrated? | |
| int | gamepad::maxPotValue (IN const device_state_t &state, IN float threshold) |
| get pot at largest value--specify threshold: 0 (min) to 1 (max). | |
| int | gamepad::maxPotChanged (IN const device_state_t &oldState, IN const device_state_t &newState) |
| compare new and old states: which potentiometer has changed most? | |
1.7.1