mirror of
https://github.com/team2059/Zaphod
synced 2024-12-28 20:12:29 -05:00
25 lines
525 B
C++
25 lines
525 B
C++
#include "Controller.h"
|
|
|
|
JoystickController::JoystickController()
|
|
{
|
|
rightJoystick = new Joystick(JOYSTICK_RIGHT);
|
|
leftJoystick = new Joystick(JOYSTICK_LEFT);
|
|
}
|
|
|
|
//void JoystickController::getRightJoystick(JoystickController *controller)
|
|
void JoystickController::getRightJoystick()
|
|
{
|
|
for(int i=1; i<13; i++)
|
|
{
|
|
rightJoystickValues[i] = rightJoystick->GetRawButton(i);
|
|
}
|
|
}
|
|
|
|
void JoystickController::getLeftJoystick()
|
|
{
|
|
for(int i=1; i<13; i++)
|
|
{
|
|
leftJoystickValues[i] = leftJoystick->GetRawButton(i);
|
|
}
|
|
}
|