1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-24 16:01:26 +00:00

padutils.c, line numbers (#2040)

This commit is contained in:
Dragorn421 2024-08-15 04:13:23 +02:00 committed by GitHub
parent fda0e6ad4b
commit 1649bf32d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 additions and 0 deletions

View file

@ -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);