Changeset 314 in flair-src for trunk/demos/MixedReality
- Timestamp:
- Mar 21, 2019, 2:04:45 PM (6 years ago)
- Location:
- trunk/demos/MixedReality
- Files:
-
- 2 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 } -
trunk/demos/MixedReality/virtual/uav/src/App.cpp
r293 r314 169 169 void App::ExtraCheckJoystick(void) { 170 170 //R1 and Square 171 if(Get Joystick()->IsButtonPressed(9) && GetJoystick()->IsButtonPressed(2) && (behaviourMode==BehaviourMode_t::Default)) {171 if(GetTargetController()->IsButtonPressed(9) && GetTargetController()->IsButtonPressed(2) && (behaviourMode==BehaviourMode_t::Default)) { 172 172 VrpnPositionHold(); 173 173 }
Note:
See TracChangeset
for help on using the changeset viewer.