fork/GramFirmware
git clone https://git.julia.blue/fork/GramFirmware
e58165a
v0.1.1
1#ifndef _MODES_MELEE18BUTTON_HPP 2#define _MODES_MELEE18BUTTON_HPP 3 4#include "core/ControllerMode.hpp" 5#include "core/socd.hpp" 6#include "core/state.hpp" 7 8typedef struct { 9bool crouch_walk_os = false; 10}Melee18ButtonOptions ; 11 12class Melee18Button :public ControllerMode { 13public : 14Melee18Button (socd::SocdType socd_type ,Melee18ButtonOptions options = {}); 15 16private : 17Melee18ButtonOptions _options ; 18bool horizontal_socd ; 19 20void HandleSocd (InputState & inputs ); 21void UpdateDigitalOutputs (InputState & inputs , OutputState & outputs ); 22void UpdateAnalogOutputs (InputState & inputs , OutputState & outputs ); 23}; 24 25#endif