1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2024-11-27 22:40:48 +01:00
segatools-dniel97/mu3io/mu3io.h
2019-08-30 19:05:23 -04:00

29 lines
485 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,
};
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);