ECRobot C++ API for LEGO MINDSTORMS NXT  1.0.10
ecrobot::GamePad Class Reference

PC HID compliant GamePad controller class for NXT GamePad. More...

#include <GamePad.h>

List of all members.

Public Member Functions

 GamePad (const Bluetooth &bt)
 Constructor.
VectorT< S8 > get (void)
 Get GamePad command.
bool isConnected (void)
 Check the connection status of GamePad controller.

Detailed Description

PC HID compliant GamePad controller class for NXT GamePad.


Constructor & Destructor Documentation

Constructor.

Parameters:
btReference of a Bluetooth object.
Returns:
-

Member Function Documentation

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)

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:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines