Indentation fixes

This commit is contained in:
Dimitris Panokostas 2019-02-08 20:20:30 +01:00
parent 11c3eeec16
commit 9d589ff4cc

View file

@ -1138,7 +1138,6 @@ static void read_joystick(void)
if (current_controller_map.right_shoulder == current_controller_map.hotkey_button)
current_controller_map.right_shoulder = -1;
auto held_offset = 0;
// detect standalone retroarch hotkeys
@ -1187,14 +1186,12 @@ static void read_joystick(void)
held_offset = 0;
}
auto val = 0;
// this should allow use to change the tolerance
int lower_bound = -32767;
int upper_bound = 32767;
// left stick
if (!currprefs.input_analog_remap)
{
@ -1211,7 +1208,6 @@ static void read_joystick(void)
val = val * -1;
setjoystickstate(hostjoyid + 1, 1, val, upper_bound);
}
else
@ -1250,8 +1246,6 @@ static void read_joystick(void)
setjoystickstate(hostjoyid + 1, 3, val, upper_bound);
// cd32 red, blue, green, yellow
// south
setjoybuttonstate(hostjoyid + 1, 0 + held_offset,
@ -1266,7 +1260,6 @@ static void read_joystick(void)
setjoybuttonstate(hostjoyid + 1, 3 + held_offset,
(SDL_JoystickGetButton(joysticktable[hostjoyid], current_controller_map.north_button) & 1));
// cd32 rwd, ffw, start
setjoybuttonstate(hostjoyid + 1, 4 + held_offset,
(SDL_JoystickGetButton(joysticktable[hostjoyid], current_controller_map.left_shoulder) & 1));