fork/GramFirmware
git clone https://git.julia.blue/fork/GramFirmware
3ab6a9b
v0.1.0
1#ifndef _INPUT_GPIOBUTTONINPUT_HPP 2#define _INPUT_GPIOBUTTONINPUT_HPP 3 4#include "core/InputSource.hpp" 5#include "core/state.hpp" 6#include "stdlib.hpp" 7 8typedef struct { 9bool InputState ::* button ; 10uint pin ; 11}GpioButtonMapping ; 12 13class GpioButtonInput :public InputSource { 14public : 15GpioButtonInput (GpioButtonMapping * button_mappings ,size_t button_count ); 16InputScanSpeed ScanSpeed (); 17void UpdateInputs (InputState & inputs ); 18 19protected : 20GpioButtonMapping * _button_mappings ; 21size_t _button_count ; 22}; 23 24#endif