Changeset 314 in flair-src for trunk/demos/MixedReality/real
- Timestamp:
- Mar 21, 2019, 2:04:45 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/MixedReality/real/uav/src/CircleFollower.cpp
r292 r314 222 222 void CircleFollower::ExtraCheckJoystick(void) { 223 223 //R1 and Circle 224 if(Get Joystick()->IsButtonPressed(9) && GetJoystick()->IsButtonPressed(4) && (behaviourMode!=BehaviourMode_t::Circle)) {224 if(GetTargetController()->IsButtonPressed(9) && GetTargetController()->IsButtonPressed(4) && (behaviourMode!=BehaviourMode_t::Circle)) { 225 225 StartCircle(); 226 226 } 227 227 228 228 //R1 and Cross 229 if(Get Joystick()->IsButtonPressed(9) && GetJoystick()->IsButtonPressed(5) && (behaviourMode==BehaviourMode_t::Circle)) {229 if(GetTargetController()->IsButtonPressed(9) && GetTargetController()->IsButtonPressed(5) && (behaviourMode==BehaviourMode_t::Circle)) { 230 230 StopCircle(); 231 231 } 232 232 233 233 //R1 and Square 234 if(Get Joystick()->IsButtonPressed(9) && GetJoystick()->IsButtonPressed(2) && (behaviourMode==BehaviourMode_t::Default)) {234 if(GetTargetController()->IsButtonPressed(9) && GetTargetController()->IsButtonPressed(2) && (behaviourMode==BehaviourMode_t::Default)) { 235 235 VrpnPositionHold(); 236 236 }
Note:
See TracChangeset
for help on using the changeset viewer.