#ifndef _MODES_PROJECTM_HPP #define _MODES_PROJECTM_HPP #include "core/ControllerMode.hpp" #include "core/socd.hpp" #include "core/state.hpp" typedef struct { bool true_z_press = false; bool ledgedash_max_jump_traj = true; } ProjectMOptions; class ProjectM : public ControllerMode { public: ProjectM(socd::SocdType socd_type, ProjectMOptions options = {}); private: ProjectMOptions _options; bool _horizontal_socd; void HandleSocd(InputState &inputs); void UpdateDigitalOutputs(InputState &inputs, OutputState &outputs); void UpdateAnalogOutputs(InputState &inputs, OutputState &outputs); }; #endif