Skip to content

Commit 97abec1

Browse files
author
Ellen Poe
committed
Fix joystick orientation
1 parent 9ce2668 commit 97abec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/winsys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ void winsys_process_events()
637637
if (!winsys_game_controller && event.jaxis.axis == getparam_joystick_x_axis())
638638
{
639639
//accelerometer
640-
x_joystick = 2 * event.jaxis.value / 32767.0;
640+
x_joystick = -2 * event.jaxis.value / 32767.0;
641641
if (x_joystick > 1)
642642
x_joystick = 1;
643643
if (x_joystick < -1)

0 commit comments

Comments
 (0)