port: fixes #205 radial movement issue

This commit is contained in:
Catherine Reprobate committed 2023-10-29 16:13:04 -07:00
1 parent 9b65199d3d
commit 3feddd8c64
1 file changed
+2 -6
+2 -6
View File
@@ -48,8 +48,6 @@ void amTick(void)
s8 gotonextscreen = false; s8 gotonextscreen = false;
s8 cstickx = joyGetStickXOnSample(j, contpadnum); s8 cstickx = joyGetStickXOnSample(j, contpadnum);
s8 csticky = joyGetStickYOnSample(j, contpadnum); s8 csticky = joyGetStickYOnSample(j, contpadnum);
s8 crstickx = joyGetRStickXOnSample(j, contpadnum);
s8 crsticky = joyGetRStickYOnSample(j, contpadnum);
#ifdef AVOID_UB #ifdef AVOID_UB
// if cstickx is -128, it will get negated and stored into absstickx, negating it again if it's 8 bit // if cstickx is -128, it will get negated and stored into absstickx, negating it again if it's 8 bit
s32 absstickx; s32 absstickx;
@@ -75,8 +73,8 @@ void amTick(void)
g_AmMenus[g_AmIndex].allbots = false; g_AmMenus[g_AmIndex].allbots = false;
#ifndef PLATFORM_N64 #ifndef PLATFORM_N64
s32 newstickx = (s32)cstickx + (s32)crstickx; s32 newstickx = (s32)cstickx;
s32 newsticky = (s32)csticky + (s32)crsticky; s32 newsticky = (s32)csticky;
if (j == 0 && g_Vars.currentplayernum == 0 && inputMouseIsLocked()) { if (j == 0 && g_Vars.currentplayernum == 0 && inputMouseIsLocked()) {
f32 mdx, mdy; f32 mdx, mdy;
struct activemenu *am = &g_AmMenus[g_AmIndex]; struct activemenu *am = &g_AmMenus[g_AmIndex];
@@ -98,8 +96,6 @@ void amTick(void)
buttonsstate = buttonsstate & D_JPAD; buttonsstate = buttonsstate & D_JPAD;
cstickx = 0; cstickx = 0;
csticky = 0; csticky = 0;
crstickx = 0;
crsticky = 0;
buttonspressed = 0; buttonspressed = 0;
} }