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