fork/GramFirmware
git clone https://git.julia.blue/fork/GramFirmware
ec52d36
master
1#ifndef _MODES_MELEE20BUTTONWASD_HPP 2#define _MODES_MELEE20BUTTONWASD_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}Melee20ButtonWASDOptions ; 11 12class Melee20ButtonWASD :public ControllerMode { 13public : 14Melee20ButtonWASD (socd::SocdType socd_type ,Melee20ButtonWASDOptions options = {}); 15 16protected : 17void UpdateDigitalOutputs (InputState & inputs , OutputState & outputs ); 18void UpdateAnalogOutputs (InputState & inputs , OutputState & outputs ); 19 20private : 21Melee20ButtonWASDOptions _options ; 22bool _horizontal_socd ; 23 24void HandleSocd (InputState & inputs ); 25}; 26 27#endif