Skip to content

Commit 9e86f70

Browse files
authored
Manual camera controls using right analog stick (#183)
1 parent cd087ae commit 9e86f70

11 files changed

Lines changed: 473 additions & 79 deletions

File tree

include/types.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ struct Controller {
2828
#if ENABLE_RUMBLE
2929
/*0x1C*/ s32 port;
3030
#endif
31+
/*0x20*/ s16 rawStick2X;
32+
/*0x22*/ s16 rawStick2Y;
33+
/*0x24*/ float stick2X; // [-64, 64] positive is right
34+
/*0x28*/ float stick2Y; // [-64, 64] positive is up
35+
/*0x2C*/ float stick2Mag; // distance from center [0, 64]
3136
};
3237

3338
typedef f32 Vec2f[2];

0 commit comments

Comments
 (0)