00001
00002
00003
00004
00005
00006
00007 #ifndef GAMEPAD_H_
00008 #define GAMEPAD_H_
00009
00010 #include "Bluetooth.h"
00011 #include "Vector.h"
00012
00013 extern "C"
00014 {
00015 #include "ecrobot_interface.h"
00016 };
00017
00018 namespace ecrobot
00019 {
00023 class GamePad
00024 {
00025 public:
00031 GamePad(const Bluetooth& bt);
00032
00040 VectorT<S8>get(void);
00041
00047 bool isConnected(void);
00048
00049 private:
00050 static const U8 DATA_BUFFER_BYTE_SIZE = 32;
00051
00052 const Bluetooth& mrBt;
00053 U8 mRawData[DATA_BUFFER_BYTE_SIZE];
00054 };
00055 }
00056
00057 #endif