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

maj joystick

File:
1 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    }
Note: See TracChangeset for help on using the changeset viewer.