diff options
| author | fig02 <fig02srl@gmail.com> | 2023-09-19 21:37:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-19 21:37:03 -0400 |
| commit | da3f4718f07bdf5af91ebf3dc5da190245ace2f9 (patch) | |
| tree | 30b31c839c81540a0647c9ef44753520f1710e1f /include | |
| parent | 185c9cbf1aed3190f335fe6745cd220d2e0b2b62 (diff) | |
Player docs: Control Stick Input and Movement (#1539)
* document input stuff and movement speed+yaw
* curve -> curved, and other cleanups
* fix + format
* function declaration
* name arguments
* add mode descriptions
* fix typos
* move comment down
Diffstat (limited to 'include')
| -rw-r--r-- | include/functions.h | 2 | ||||
| -rw-r--r-- | include/z64player.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.h b/include/functions.h index 1456c40c3..8ce39ff86 100644 --- a/include/functions.h +++ b/include/functions.h @@ -856,7 +856,7 @@ s32 Math_StepUntilS(s16* pValue, s16 limit, s16 step); s32 Math_StepToAngleS(s16* pValue, s16 target, s16 step); s32 Math_StepUntilF(f32* pValue, f32 limit, f32 step); s32 Math_AsymStepToF(f32* pValue, f32 target, f32 incrStep, f32 decrStep); -void func_80077D10(f32* arg0, s16* arg1, Input* input); +void Lib_GetControlStickData(f32* outMagnitude, s16* outAngle, Input* input); s16 Rand_S16Offset(s16 base, s16 range); void Math_Vec3f_Copy(Vec3f* dest, Vec3f* src); void Math_Vec3s_ToVec3f(Vec3f* dest, Vec3s* src); diff --git a/include/z64player.h b/include/z64player.h index 7acac60ab..1796b47d8 100644 --- a/include/z64player.h +++ b/include/z64player.h @@ -758,8 +758,8 @@ typedef struct Player { /* 0x0A79 */ u8 floorTypeTimer; // counts up every frame the current floor type is the same as the last frame /* 0x0A7A */ u8 floorProperty; /* 0x0A7B */ u8 prevFloorType; - /* 0x0A7C */ f32 unk_A7C; - /* 0x0A80 */ s16 unk_A80; + /* 0x0A7C */ f32 prevControlStickMagnitude; + /* 0x0A80 */ s16 prevControlStickAngle; /* 0x0A82 */ u16 prevFloorSfxOffset; /* 0x0A84 */ s16 unk_A84; /* 0x0A86 */ s8 unk_A86; |
