mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
18 lines
470 B
C++
18 lines
470 B
C++
#ifndef GAME_CONTROLLER_H
|
|
#define GAME_CONTROLLER_H
|
|
|
|
#include "WPILib.h"
|
|
|
|
class GameController{
|
|
private:
|
|
Joystick *stick;
|
|
std::string type;
|
|
JoystickButton *a, *b, *x, *y, *lb, *rb, *tlb, *trb, *start, *back, *lPress, *rPress, *dUp, *dDown, *dLeft, *dRight;
|
|
public:
|
|
GameController(int port, std::string controllerType);
|
|
bool GetButton(std::string button);
|
|
double GetAxis(std::string position, std::string axis);
|
|
};
|
|
#endif
|
|
// vim: ts=2:sw=2:et
|