Indentation fixes
This commit is contained in:
parent
11c3eeec16
commit
9d589ff4cc
1 changed files with 36 additions and 43 deletions
|
@ -1138,7 +1138,6 @@ static void read_joystick(void)
|
||||||
if (current_controller_map.right_shoulder == current_controller_map.hotkey_button)
|
if (current_controller_map.right_shoulder == current_controller_map.hotkey_button)
|
||||||
current_controller_map.right_shoulder = -1;
|
current_controller_map.right_shoulder = -1;
|
||||||
|
|
||||||
|
|
||||||
auto held_offset = 0;
|
auto held_offset = 0;
|
||||||
|
|
||||||
// detect standalone retroarch hotkeys
|
// detect standalone retroarch hotkeys
|
||||||
|
@ -1187,14 +1186,12 @@ static void read_joystick(void)
|
||||||
held_offset = 0;
|
held_offset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
auto val = 0;
|
auto val = 0;
|
||||||
|
|
||||||
// this should allow use to change the tolerance
|
// this should allow use to change the tolerance
|
||||||
int lower_bound = -32767;
|
int lower_bound = -32767;
|
||||||
int upper_bound = 32767;
|
int upper_bound = 32767;
|
||||||
|
|
||||||
|
|
||||||
// left stick
|
// left stick
|
||||||
if (!currprefs.input_analog_remap)
|
if (!currprefs.input_analog_remap)
|
||||||
{
|
{
|
||||||
|
@ -1211,7 +1208,6 @@ static void read_joystick(void)
|
||||||
val = val * -1;
|
val = val * -1;
|
||||||
|
|
||||||
setjoystickstate(hostjoyid + 1, 1, val, upper_bound);
|
setjoystickstate(hostjoyid + 1, 1, val, upper_bound);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -1250,8 +1246,6 @@ static void read_joystick(void)
|
||||||
|
|
||||||
setjoystickstate(hostjoyid + 1, 3, val, upper_bound);
|
setjoystickstate(hostjoyid + 1, 3, val, upper_bound);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// cd32 red, blue, green, yellow
|
// cd32 red, blue, green, yellow
|
||||||
// south
|
// south
|
||||||
setjoybuttonstate(hostjoyid + 1, 0 + held_offset,
|
setjoybuttonstate(hostjoyid + 1, 0 + held_offset,
|
||||||
|
@ -1266,7 +1260,6 @@ static void read_joystick(void)
|
||||||
setjoybuttonstate(hostjoyid + 1, 3 + held_offset,
|
setjoybuttonstate(hostjoyid + 1, 3 + held_offset,
|
||||||
(SDL_JoystickGetButton(joysticktable[hostjoyid], current_controller_map.north_button) & 1));
|
(SDL_JoystickGetButton(joysticktable[hostjoyid], current_controller_map.north_button) & 1));
|
||||||
|
|
||||||
|
|
||||||
// cd32 rwd, ffw, start
|
// cd32 rwd, ffw, start
|
||||||
setjoybuttonstate(hostjoyid + 1, 4 + held_offset,
|
setjoybuttonstate(hostjoyid + 1, 4 + held_offset,
|
||||||
(SDL_JoystickGetButton(joysticktable[hostjoyid], current_controller_map.left_shoulder) & 1));
|
(SDL_JoystickGetButton(joysticktable[hostjoyid], current_controller_map.left_shoulder) & 1));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue