fork/GramFirmware

git clone https://git.julia.blue/fork/GramFirmware

CarVacrebase to configurator818d962

gram
721 B29 linesraw
1#ifndef _MODES_PROJECTM_HPP
2#define _MODES_PROJECTM_HPP
3
4#include "core/ControllerMode.hpp"
5#include "core/state.hpp"
6
7#include <config.pb.h>
8
9// typedef struct {
10//     bool true_z_press = false;
11//     bool ledgedash_max_jump_traj = true;
12// } ProjectMOptions;
13
14class ProjectM : public ControllerMode {
15  public:
16    ProjectM();
17    void SetConfig(GameModeConfig &config, const ProjectMOptions options);
18    bool isMelee() {return false;};
19
20  private:
21    ProjectMOptions _options;
22    bool _horizontal_socd;
23
24    void HandleSocd(InputState &inputs);
25    void UpdateDigitalOutputs(const InputState &inputs, OutputState &outputs);
26    void UpdateAnalogOutputs(const InputState &inputs, OutputState &outputs);
27};
28
29#endif