Skip to content

Commit

Permalink
Merge pull request #2770 from rajat2004/xbox
Browse files Browse the repository at this point in the history
XBox Controller fix
  • Loading branch information
zimmy87 authored Mar 1, 2021
2 parents 0a3f84c + b8e4ed5 commit dd48d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Unreal/Plugins/AirSim/Source/SimJoyStick/SimJoyStick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ struct SimJoyStick::impl {
else { //XBox
switch(event_.number) {
case 0: state.left_x = normalizeAxisVal(event_.value, true, false, false); break;
case 1: state.left_y = normalizeAxisVal(event_.value, false, true, true); break;
case 1: state.left_y = normalizeAxisVal(event_.value, true, false, true); break;
case 2: state.left_z = normalizeAxisVal(event_.value, true, false, false); break;
case 3: state.right_x = normalizeAxisVal(event_.value, true, false, false); break;
case 4: state.right_y = normalizeAxisVal(event_.value, true, false, false); break;
Expand Down

0 comments on commit dd48d08

Please sign in to comment.