Changeset 314 in flair-src for trunk/demos/MixedReality


Ignore:
Timestamp:
Mar 21, 2019, 2:04:45 PM (6 years ago)
Author:
Sanahuja Guillaume
Message:

maj joystick

Location:
trunk/demos/MixedReality
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/MixedReality/real/uav/src/CircleFollower.cpp

    r292 r314  
    222222void CircleFollower::ExtraCheckJoystick(void) {
    223223    //R1 and Circle
    224     if(GetJoystick()->IsButtonPressed(9) && GetJoystick()->IsButtonPressed(4) && (behaviourMode!=BehaviourMode_t::Circle)) {
     224    if(GetTargetController()->IsButtonPressed(9) && GetTargetController()->IsButtonPressed(4) && (behaviourMode!=BehaviourMode_t::Circle)) {
    225225        StartCircle();
    226226    }
    227227
    228228    //R1 and Cross
    229     if(GetJoystick()->IsButtonPressed(9) && GetJoystick()->IsButtonPressed(5) && (behaviourMode==BehaviourMode_t::Circle)) {
     229    if(GetTargetController()->IsButtonPressed(9) && GetTargetController()->IsButtonPressed(5) && (behaviourMode==BehaviourMode_t::Circle)) {
    230230        StopCircle();
    231231    }
    232232   
    233233    //R1 and Square
    234     if(GetJoystick()->IsButtonPressed(9) && GetJoystick()->IsButtonPressed(2) && (behaviourMode==BehaviourMode_t::Default)) {
     234    if(GetTargetController()->IsButtonPressed(9) && GetTargetController()->IsButtonPressed(2) && (behaviourMode==BehaviourMode_t::Default)) {
    235235        VrpnPositionHold();
    236236    }
  • trunk/demos/MixedReality/virtual/uav/src/App.cpp

    r293 r314  
    169169void App::ExtraCheckJoystick(void) {
    170170    //R1 and Square
    171     if(GetJoystick()->IsButtonPressed(9) && GetJoystick()->IsButtonPressed(2) && (behaviourMode==BehaviourMode_t::Default)) {
     171    if(GetTargetController()->IsButtonPressed(9) && GetTargetController()->IsButtonPressed(2) && (behaviourMode==BehaviourMode_t::Default)) {
    172172        VrpnPositionHold();
    173173    }
Note: See TracChangeset for help on using the changeset viewer.