mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
23 lines
602 B
C++
23 lines
602 B
C++
#include "OI.h"
|
|
#include "Commands/Lower.h"
|
|
#include "Commands/Raise.h"
|
|
#include "Commands/Collect.h"
|
|
#include "Commands/Eject.h"
|
|
#include "Commands/Compressor/StartCompressing.h"
|
|
#include "Commands/Compressor/StopCompressing.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;
|
|
}
|