blob: 116bd9c93b5ba54b8360c0a8465e7280c91f1fc7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#pragma once
#include "inputs/button.h"
namespace inputs {
class Input {
public:
Input(
uint8_t down_pin,
uint8_t up_pin,
uint8_t right_pin,
uint8_t left_pin,
uint8_t a_pin,
uint8_t b_pin,
uint8_t pause_pin);
void init();
bool down_pressed();
bool up_pressed();
bool right_pressed();
bool left_pressed();
bool a_pressed();
bool b_pressed();
bool pause_pressed();
private:
Button down;
Button up;
Button left;
Button right;
Button a;
Button b;
Button pause;
};
}
|