Skip to content

Commit

Permalink
added setAutoCenter implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kissslorinc committed Apr 21, 2018
1 parent 284aa93 commit 1572f62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Unreal/Plugins/AirSim/Source/SimJoyStick/SimJoyStick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ struct SimJoyStick::impl {
}
}

void setAutoCenter(unsigned int index, double strength) {
controllers_[index]->setAutoCenter(strength);
}

void setWheelRumble(unsigned int index, double strength) {
controllers_[index]->setWheelRumble(strength);
}


private:
float getMappedValue(AxisMap::AxisType axis_type, const AxisMap& map, const DirectInputJoyStick::JoystickState& di_state, const std::string& device_pid_vid)
Expand Down

0 comments on commit 1572f62

Please sign in to comment.