pokemon/input.hpp
2023-07-25 00:25:12 +00:00

31 lines
475 B
C++

#pragma once
#include <stdint.h>
struct count_flop_t {
int8_t count;
uint8_t flop;
uint8_t das;
uint8_t repeat;
};
struct input_t {
count_flop_t right;
count_flop_t left;
count_flop_t down;
count_flop_t up;
count_flop_t start;
count_flop_t a;
count_flop_t b;
count_flop_t c;
count_flop_t r;
count_flop_t x;
count_flop_t y;
count_flop_t z;
count_flop_t l;
};
void digital_callback(uint8_t fsm_state, uint8_t data);
extern input_t input;