[Maintenance] master.hpp transition: Joystick data and functions

Part of P0132, funded by [Anonymous].
This commit is contained in:
nmlgc 2021-01-02 16:10:42 +01:00
parent 3f61342898
commit 55fb6f2e56
2 changed files with 14 additions and 1 deletions

View File

@ -240,6 +240,18 @@ void MASTER_RET grcg_off(void);
#endif #endif
// ------------------------- // -------------------------
// Joystick
// --------
extern int js_bexist;
extern unsigned js_stat[2];
int MASTER_RET js_start(int force);
void MASTER_RET js_end(void);
int MASTER_RET js_sense(void);
// --------
// Heap // Heap
// ---- // ----

View File

@ -1,7 +1,8 @@
#pragma codeseg SHARED #pragma codeseg SHARED
extern "C" { extern "C" {
#include "ReC98.h" #include "platform.h"
#include "master.hpp"
#include "th02/hardware/frmdelay.h" #include "th02/hardware/frmdelay.h"
#include "th03/hardware/input.h" #include "th03/hardware/input.h"