aboutsummaryrefslogtreecommitdiffstats
path: root/common/action_oneshot.c
blob: d34f44b5aba181db48843ab571601ca51f7df2cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "action_oneshot.h"


#ifndef NO_ACTION_ONESHOT
oneshot_state_t oneshot_state;

void oneshot_start(uint8_t mods)
{
    oneshot_state.mods = mods;
}

void oneshot_cancel(void)
{
    oneshot_state.mods = 0;
}

void oneshot_toggle(void)
{
    oneshot_state.disabled = !oneshot_state.disabled;
}
#endif