Skip to content

Commit

Permalink
Removed some unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
faha223 committed Jan 28, 2025
1 parent abba282 commit e967cc9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ui/xemu-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,6 @@ void xemu_input_init(void)
bound_drivers[2] = get_bound_driver(2);
bound_drivers[3] = get_bound_driver(3);

bound_drivers[0] = get_bound_driver(0);
bound_drivers[1] = get_bound_driver(1);
bound_drivers[2] = get_bound_driver(2);
bound_drivers[3] = get_bound_driver(3);

// Check to see if we should auto-bind the keyboard
int port = xemu_input_get_controller_default_bind_port(new_con, 0);
if (port >= 0) {
Expand Down Expand Up @@ -712,7 +707,6 @@ void xemu_input_update_sdl_kbd_controller_state(ControllerState *state)
state->gp.axis[CONTROLLER_AXIS_LSTICK_Y] = -32768;
if (kbd[sdl_kbd_scancode_map[19]])
state->gp.axis[CONTROLLER_AXIS_LTRIG] = 32767;

if (kbd[sdl_kbd_scancode_map[20]])
state->gp.axis[CONTROLLER_AXIS_RSTICK_Y] = 32767;
if (kbd[sdl_kbd_scancode_map[21]])
Expand Down

0 comments on commit e967cc9

Please sign in to comment.