fork/GramFirmware

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

Jonathan HaylettImprovements and fixes for Melee18Button modee58165a

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