1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2024-11-28 06:50:49 +01:00
segatools-dniel97/mu3io/mu3io.h

31 lines
525 B
C
Raw Normal View History

2019-08-31 00:49:55 +02:00
#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,
};
2021-06-06 20:25:32 +02:00
uint16_t mu3_io_get_api_version(void);
2019-08-31 00:49:55 +02:00
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);