diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2024-08-15 04:13:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-14 22:13:23 -0400 |
| commit | 1649bf32d64523ba79f6896d2b9c816a9cd20e77 (patch) | |
| tree | 242f9d37eb35cd00c2088f2bc4dc3b9713301e6f /src/code/padutils.c | |
| parent | fda0e6ad4badc0eea701934b80354de4ab5cad98 (diff) | |
padutils.c, line numbers (#2040)
Diffstat (limited to 'src/code/padutils.c')
| -rw-r--r-- | src/code/padutils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/code/padutils.c b/src/code/padutils.c index 2f0f57162..7a0407ef9 100644 --- a/src/code/padutils.c +++ b/src/code/padutils.c @@ -9,6 +9,10 @@ void func_800FCB70(void) { void PadUtils_ResetPressRel(Input* input) { input->press.button = 0; +#if PLATFORM_N64 + input->press.stick_x = 0; + input->press.stick_y = 0; +#endif input->rel.button = 0; } @@ -65,6 +69,16 @@ s8 PadUtils_GetRelY(Input* input) { return PadUtils_GetRelYImpl(input); } +#if PLATFORM_N64 +s8 PadUtils_GetPressX(Input* input) { + return input->press.stick_x; +} + +s8 PadUtils_GetPressY(Input* input) { + return input->press.stick_y; +} +#endif + void PadUtils_UpdateRelXY(Input* input) { s32 curX = PadUtils_GetCurX(input); s32 curY = PadUtils_GetCurY(input); |
