ecrobot::GamePad Class Reference
PC HID compliant GamePad controller class for NXT GamePad.
More...
#include <GamePad.h>
List of all members.
Detailed Description
PC HID compliant GamePad controller class for NXT GamePad.
Constructor & Destructor Documentation
ecrobot::GamePad::GamePad |
( |
const Bluetooth & |
bt |
) |
|
Constructor.
- Parameters:
-
- Returns:
- -
Member Function Documentation
VectorT<S8> ecrobot::GamePad::get |
( |
void |
|
) |
|
Get GamePad command.
- Parameters:
-
- Returns:
- Vectorized command
VectorT.mX: Left analog input in vertical direction. -100(up) to 100(down)
VectorT.mY: Right analog input in horizontal direction. -100(left) to 100(right)
bool ecrobot::GamePad::isConnected |
( |
void |
|
) |
|
Check the connection status of GamePad controller.
- Parameters:
-
- Returns:
- true:connected/false:not connected
The documentation for this class was generated from the following file: