1
0
mirror of synced 2024-11-27 23:10:49 +01:00
bananatools/exvs2io/exvs2io.h
Kevin Trocolli 8ff356b84c add games
2023-09-18 04:05:22 -04:00

51 lines
1.4 KiB
C

#pragma once
#include <windows.h>
#include <stdint.h>
#include "exvs2io/config.h"
enum {
EXVS2_IO_OPBTN_TEST = 0x01,
EXVS2_IO_OPBTN_SERVICE = 0x02,
EXVS2_IO_OPBTN_COIN = 0x20,
};
enum {
EXVS2_IO_GAMEBTN_1 = 0x1,
EXVS2_IO_GAMEBTN_2 = 0x2,
EXVS2_IO_GAMEBTN_3 = 0x4,
EXVS2_IO_GAMEBTN_4 = 0x8,
EXVS2_IO_GAMEBTN_UP = 0x10,
EXVS2_IO_GAMEBTN_DOWN = 0x20,
EXVS2_IO_GAMEBTN_LEFT = 0x40,
EXVS2_IO_GAMEBTN_RIGHT = 0x80,
EXVS2_IO_GAMEBTN_START = 0x100,
};
/* Get the version of the Pokken IO API that this DLL supports. This
function should return a positive 16-bit integer, where the high byte is
the major version and the low byte is the minor version (as defined by the
Semantic Versioning standard).
The latest API version as of this writing is 0x0100. */
uint16_t exvs2_io_get_api_version(void);
/* Initialize the IO DLL. This is the second function that will be called on
your DLL, after exvs2_io_get_api_version.
All subsequent calls to this API may originate from arbitrary threads.
Minimum API version: 0x0100 */
HRESULT exvs2_io_jvs_init(void);
/* Send any queued outputs (of which there are currently none, though this may
change in subsequent API versions) and retrieve any new inputs.
Minimum API version: 0x0100 */
HRESULT exvs2_io_jvs_poll(uint8_t *opbtn, uint16_t *gamepad);
void exvs2_io_jvs_read_coin_counter(uint16_t *coins);