mirror of
https://github.com/Ed94/pikuma_ps1.git
synced 2026-08-05 15:18:49 +00:00
wip: input was working... messed it up (bios snapshot reads)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
# include "duffle/dsl.h"
|
||||
# include "duffle/math.h"
|
||||
# include "duffle/gp.h"
|
||||
# include "duffle/pad.h"
|
||||
#endif
|
||||
|
||||
enum {
|
||||
@@ -10,40 +11,16 @@ enum {
|
||||
OrderingTbl_Len = 2048
|
||||
};
|
||||
|
||||
#define ScreenRes_X 320
|
||||
#define ScreenRes_Y 240
|
||||
#define ScreenZ 320
|
||||
#define ScreenRes_CenterX (ScreenRes_X >> 1)
|
||||
#define ScreenRes_CenterY (ScreenRes_Y >> 1)
|
||||
enum {
|
||||
ScreenRes_X = 320,
|
||||
ScreenRes_Y = 240,
|
||||
ScreenZ = 320,
|
||||
ScreenRes_CenterX = (ScreenRes_X >> 1),
|
||||
ScreenRes_CenterY = (ScreenRes_Y >> 1),
|
||||
};
|
||||
|
||||
enum {
|
||||
fp_one = (1 << 12),
|
||||
};
|
||||
|
||||
#define v3s4_fp_one() v3s4(fp_one, fp_one, fp_one)
|
||||
|
||||
#ifdef INTELLISENSE_DIRECTIVES
|
||||
# include "duffle/pad.h"
|
||||
#endif
|
||||
|
||||
/* ============================================================
|
||||
* Raw SIO0 pad subsystem (raw_sio_pad_poll_20260802)
|
||||
* ============================================================ */
|
||||
|
||||
typedef Struct_(Binds_PadSioStep) {
|
||||
PadState* state0;
|
||||
PadState* state1;
|
||||
U4 sio_base_addr0;
|
||||
U4 sio_base_addr1;
|
||||
};
|
||||
|
||||
typedef Struct_(Binds_PadApplyInput) {
|
||||
PadState* state;
|
||||
V3_S2* cube_rot;
|
||||
V3_S2* floor_rot;
|
||||
};
|
||||
|
||||
/* Populates smem.pad_sio_init with the two PadState pointers and the
|
||||
* KSEG1 SIO0 base. The caller (main()) runs this once at boot before
|
||||
* the first tb_emit(pad_sio_init). */
|
||||
void pad_sio_init_setup(PadSioInit* init, PadState* s0, PadState* s1);
|
||||
|
||||
Reference in New Issue
Block a user