fork/GramFirmware

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

CarVacrebase to configurator818d962

gram
794 B36 linesraw
1#ifndef _CORE_SOCD_HPP
2#define _CORE_SOCD_HPP
3
4#include "state.hpp"
5#include "stdlib.hpp"
6
7#include <config.pb.h>
8
9namespace socd {
10    typedef struct {
11        bool was_dir1 = false;
12        bool was_dir2 = false;
13        bool lock_dir1 = false;
14        bool lock_dir2 = false;
15    } SocdState;
16
17    void second_input_priority_no_reactivation(
18        InputState &inputs,
19        Button button_dir1,
20        Button button_dir2,
21        SocdState &socd_state
22    );
23
24    void second_input_priority(
25        InputState &inputs,
26        Button button_dir1,
27        Button button_dir2,
28        SocdState &socd_state
29    );
30
31    void neutral(InputState &inputs, Button button_dir1, Button button_dir2);
32
33    void dir1_priority(InputState &inputs, Button button_dir1, Button button_dir2);
34}
35
36#endif