Commit c8d60cf8 authored by Felix Rath's avatar Felix Rath
Browse files

fix left analog and right analog axis normalizaton for ps3 controller

parent 415799cc
...@@ -139,8 +139,8 @@ GamePad::GamePad( int _n ) ...@@ -139,8 +139,8 @@ GamePad::GamePad( int _n )
setButtonMapping( LEFT_TRIGGER , 8); setButtonMapping( LEFT_TRIGGER , 8);
setButtonMapping( RIGHT_TRIGGER , 9); setButtonMapping( RIGHT_TRIGGER , 9);
setAxisMapping( LEFT_ANALOG_TRIGGER , 12); setAxisMapping( LEFT_ANALOG_TRIGGER , 12); mAxesMultiplier[12] = 0.5f; mAxesAdd[12] = 0.5f;
setAxisMapping( RIGHT_ANALOG_TRIGGER , 13); setAxisMapping( RIGHT_ANALOG_TRIGGER , 13); mAxesMultiplier[13] = -0.5f; mAxesAdd[13] = 0.5f;
setAxisMapping( LEFT_ANALOG_STICK_X , 0); setAxisMapping( LEFT_ANALOG_STICK_X , 0);
setAxisMapping( LEFT_ANALOG_STICK_Y , 1); setAxisMapping( LEFT_ANALOG_STICK_Y , 1);
setAxisMapping( RIGHT_ANALOG_STICK_X , 2); setAxisMapping( RIGHT_ANALOG_STICK_X , 2);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment