fork/GramFirmware
git clone https://git.julia.blue/fork/GramFirmware
3ab6a9b
v0.1.2
1#ifndef _INPUT_GAMECUBECONTROLLERINPUT_HPP 2#define _INPUT_GAMECUBECONTROLLERINPUT_HPP 3 4#include "core/InputSource.hpp" 5#include "core/state.hpp" 6 7#include <GamecubeController.hpp> 8#include <gamecube_definitions.h> 9 10class GamecubeControllerInput :public InputSource { 11public : 12GamecubeControllerInput ( 13uint data_pin , 14uint polling_rate , 15PIO pio = pio0 , 16int sm = -1 , 17int offset = -1 18 ); 19 ~GamecubeControllerInput (); 20InputScanSpeed ScanSpeed (); 21void UpdateInputs (InputState & inputs ); 22int GetOffset (); 23 24protected : 25GamecubeController * _controller ; 26gc_report_t _report ; 27}; 28 29#endif