forked from Dniel97/segatools
31 lines
525 B
C
31 lines
525 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
enum {
|
|
MU3_IO_OPBTN_TEST = 0x01,
|
|
MU3_IO_OPBTN_SERVICE = 0x02,
|
|
};
|
|
|
|
enum {
|
|
MU3_IO_GAMEBTN_1 = 0x01,
|
|
MU3_IO_GAMEBTN_2 = 0x02,
|
|
MU3_IO_GAMEBTN_3 = 0x04,
|
|
MU3_IO_GAMEBTN_SIDE = 0x08,
|
|
MU3_IO_GAMEBTN_MENU = 0x10,
|
|
};
|
|
|
|
uint16_t mu3_io_get_api_version(void);
|
|
|
|
HRESULT mu3_io_init(void);
|
|
|
|
HRESULT mu3_io_poll(void);
|
|
|
|
void mu3_io_get_opbtns(uint8_t *opbtn);
|
|
|
|
void mu3_io_get_gamebtns(uint8_t *left, uint8_t *right);
|
|
|
|
void mu3_io_get_lever(int16_t *pos);
|