mirror of
https://gitea.tendokyu.moe/TeamTofuShop/taitools.git
synced 2026-09-22 22:28:06 +03:00
25 lines
734 B
C
25 lines
734 B
C
#pragma once
|
|
#include <windows.h>
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#pragma pack(push,1)
|
|
|
|
// needs to handle digital and analog reads and writes, coin stuff, and
|
|
// having an ad-on device (usually a card reader) and maybe an SD card??
|
|
|
|
// Mayhaps move this to a seperate thing in the event a second USB IO
|
|
// providor is needed?
|
|
struct usbio_ops {
|
|
void (*digital_in)(void *ctx, uint32_t *out);
|
|
void (*digital_out)(void *ctx); // TODO: digital outputs
|
|
void (*analog_in)(void *ctx, uint16_t out[8]);
|
|
bool (*is_coin_pressed)(void *ctx);
|
|
void (*reader_poll)(void *ctx); // TODO: reader struct?
|
|
void (*reader_led_out)(void *ctx); // TODO: reader struct?
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
HRESULT k9101258_hook_init();
|