idzio: Prepare for switchable backends

This commit is contained in:
Tau
2019-05-04 18:47:34 -04:00
parent 2864d22df2
commit 04189be8f0
5 changed files with 141 additions and 46 deletions

11
idzio/backend.h Normal file
View File

@ -0,0 +1,11 @@
#pragma once
#include <stdint.h>
#include "idzio/idzio.h"
struct idz_io_backend {
void (*jvs_read_buttons)(uint8_t *gamebtn);
void (*jvs_read_shifter)(uint8_t *gear);
void (*jvs_read_analogs)(struct idz_io_analog_state *state);
};