# 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

ecrobot::GamePad::GamePad | ( | const Bluetooth & | bt | ) |

Constructor.

Parameters:

  | bt | Reference of a Bluetooth object.

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:

- util/GamePad.h