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:
parent
fda0e6ad4b
commit
1649bf32d6
4 changed files with 32 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue