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


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

maj joystick

Location:
trunk/demos/Skeletons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/Skeletons/CustomReferenceAngles/src/MyApp.cpp

    r167 r314  
    8383void MyApp::ExtraCheckJoystick(void) {
    8484    //R1
    85     if(GetJoystick()->IsButtonPressed(9) && (behaviourMode!=BehaviourMode_t::CustomReferenceAngles)) {
     85    if(GetTargetController()->IsButtonPressed(9) && (behaviourMode!=BehaviourMode_t::CustomReferenceAngles)) {
    8686        StartCustomAngles();
    8787    }
  • trunk/demos/Skeletons/CustomTorques/src/MyApp.cpp

    r122 r314  
    7070void MyApp::ExtraCheckJoystick(void) {
    7171    //R1
    72     if(GetJoystick()->IsButtonPressed(9) && (behaviourMode!=BehaviourMode_t::CustomTorques)) {
     72    if(GetTargetController()->IsButtonPressed(9) && (behaviourMode!=BehaviourMode_t::CustomTorques)) {
    7373        StartCustomTorques();
    7474    }
Note: See TracChangeset for help on using the changeset viewer.