-
Notifications
You must be signed in to change notification settings - Fork 0
/
Input.h
49 lines (35 loc) · 806 Bytes
/
Input.h
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
39
40
41
42
43
44
45
46
47
48
49
#ifndef _INPUT_H_
#define _INPUT_H_
#include "Service.h"
class Input
{
private:
// Old 'W' key state
static bool oldWKeyState;
// Old 'Q' key state
static bool oldQKeyState;
// Old 'X' key state
static bool oldXKeyState;
// Handle 'left arrow' key
static void handleLeftArrow( );
// Handle 'right arrow' key
static void handleRightArrow( );
// Handle 'up arrow' key
static void handleUpArrow( );
// Handle 'down arrow' key
static void handleDownArrow( );
// Handle 'Q' key
static void handleQ( );
// Handle 'W' key
static void handleW( );
// Handle 'X' key
static void handleX( );
public:
// Handle all tank control keys
static void handleTankControlKeys( );
// Handle 'Esc' key
static bool handleEsc( );
// Handle 'Enter' key
static bool handleEnter( );
};
#endif