blob: 9830a4910bd8bfd34e09bc02de0dbe68880a2dbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
enum _inputs {
INPUT_UP,
INPUT_DOWN,
INPUT_LEFT,
INPUT_RIGHT,
INPUT_A,
INPUT_S,
INPUT_LENGTH // no. of checked inputs
};
#define input_up(a) (1 & a >> INPUT_UP)
#define input_down(a) (1 & a >> INPUT_DOWN)
#define input_left(a) (1 & a >> INPUT_LEFT)
#define input_right(a) (1 & a >> INPUT_RIGHT)
#define input_a(a) (1 & a >> INPUT_A)
#define input_s(a) (1 & a >> INPUT_S)
|