fork/GramFirmware

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

CarVacrebase to configurator818d962

gram
600 B25 linesraw
1#ifndef _MODES_MELEE20BUTTON_HPP
2#define _MODES_MELEE20BUTTON_HPP
3
4#include "core/ControllerMode.hpp"
5#include "core/state.hpp"
6
7#include <config.pb.h>
8
9class Melee20Button : public ControllerMode {
10  public:
11    Melee20Button();
12    void SetConfig(GameModeConfig &config, const MeleeOptions options);
13    bool isMelee() {return true;};
14
15  protected:
16    void UpdateDigitalOutputs(const InputState &inputs, OutputState &outputs);
17    void UpdateAnalogOutputs(const InputState &inputs, OutputState &outputs);
18
19  private:
20    MeleeOptions _options;
21
22    void HandleSocd(InputState &inputs);
23};
24
25#endif