fork/GramFirmware

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

CarVacrebase to configurator818d962

gram
597 B24 linesraw
1#ifndef _MODES_MELEE18BUTTON_HPP
2#define _MODES_MELEE18BUTTON_HPP
3
4#include "core/ControllerMode.hpp"
5#include "core/state.hpp"
6
7typedef struct {
8    bool crouch_walk_os = false;
9} Melee18ButtonOptions;
10
11class Melee18Button : public ControllerMode {
12  public:
13    Melee18Button(Melee18ButtonOptions options = {});
14
15  private:
16    Melee18ButtonOptions _options;
17    bool horizontal_socd;
18
19    void HandleSocd(InputState &inputs);
20    void UpdateDigitalOutputs(const InputState &inputs, OutputState &outputs);
21    void UpdateAnalogOutputs(const InputState &inputs, OutputState &outputs);
22};
23
24#endif