2
0
mirror of https://github.com/team2059/Dent synced 2025-01-07 22:14:14 -05:00
dent/OI.cpp
2015-01-25 08:46:48 -05:00

21 lines
503 B
C++

#include "OI.h"
#include "Commands/Lower.h"
#include "Commands/Raise.h"
#include "Commands/Collect.h"
#include "Commands/Eject.h"
OI::OI() {
leftStick=new Joystick(0);
rightStick=new Joystick(1);
JoystickButton *left10=new JoystickButton(leftStick, 10);
JoystickButton *left11=new JoystickButton(leftStick, 11);
left10->WhenPressed(new Eject());
left11->WhenPressed(new Collect());
}
Joystick* OI::GetRightStick(){
return rightStick;
}
Joystick* OI::GetLeftStick(){
return leftStick;
}