mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-10-18 19:22:41 +00:00
Fix analogue camera axis inversion, mouse now obeys inversion.
This commit is contained in:
parent
501f54f383
commit
595be623a0
1 changed files with 3 additions and 3 deletions
|
@ -232,7 +232,7 @@ static s16 newcam_approach_s16(s16 var, s16 val, s16 inc)
|
|||
return min(var - inc, val);
|
||||
}
|
||||
|
||||
static u8 ivrt(u8 axis)
|
||||
static int ivrt(u8 axis)
|
||||
{
|
||||
if (axis == 0)
|
||||
{
|
||||
|
@ -378,8 +378,8 @@ static void newcam_rotate_button(void)
|
|||
|
||||
if (newcam_mouse == 1)
|
||||
{
|
||||
newcam_yaw += mouse_x * 16;
|
||||
newcam_tilt += mouse_y * 16;
|
||||
newcam_yaw += ivrt(0) * mouse_x * 16;
|
||||
newcam_tilt += ivrt(1) * mouse_y * 16;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue