fork/GramFirmware

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

Jonathan HaylettSOCD revamp (#57)1f92ae6

codespace-scaling-space-guide-56rpxqvxpg2v57v
461 B16 linesraw
1#include "modes/extra/ToughLoveArena.hpp"
2
3ToughLoveArena::ToughLoveArena(socd::SocdType socd_type) {
4    _socd_pair_count = 1;
5    _socd_pairs = new socd::SocdPair[_socd_pair_count]{
6        socd::SocdPair{&InputState::left, &InputState::right, socd_type},
7    };
8}
9
10void ToughLoveArena::UpdateKeys(InputState &inputs) {
11    Press('s', inputs.left);
12    Press('d', inputs.right);
13    Press('j', inputs.b);
14    Press('k', inputs.x);
15    Press('l', inputs.z);
16}