about summary refs log tree commit diff stats
path: root/src/pong.h
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-09-11 12:29:30 -0400
committerCharadon <dev@iotib.net>2022-09-11 12:29:30 -0400
commitb93aff21d13e8dfbcad5a2cc45ca21dc8d647aeb (patch)
tree0faf1b5ba45092980a9a798632659bb12c8301f5 /src/pong.h
parent02e9d2f294a1b059c75bbe9c0c1ca8452c855960 (diff)
downloadPong-C-b93aff21d13e8dfbcad5a2cc45ca21dc8d647aeb.tar.gz
Added player_controls function.
Diffstat (limited to 'src/pong.h')
-rw-r--r--src/pong.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pong.h b/src/pong.h
index 310c45f..fb7cc93 100644
--- a/src/pong.h
+++ b/src/pong.h
@@ -23,6 +23,14 @@
 #define LEFT 0
 #define RIGHT 1
 
+/* Controller Macros */
+#define CONTROLLER_ACTIVATE 1
+#define CONTROLLER_LEFT 2
+#define CONTROLLER_RIGHT 3
+#define CONTROLLER_UP 4
+#define CONTROLLER_DOWN 5
+#define CONTROLLER_PAUSE 6
+
 struct Players {
 	float Y;
 	Rectangle HitBox;
@@ -65,5 +73,6 @@ void versus_main();
 void marathon_main();
 void set_screen_mode();
 bool pause_screen(Camera2D *MainCamera);
+int player_controls();
 
 #endif
> ^
f027adc0 ^
5c210a96 ^

3de15ddd ^

5c210a96 ^
fb275079 ^

5c210a96 ^
3d566884 ^
a1d7ed6e ^
3d566884 ^
f8e96a97 ^
465bff73 ^





f027adc0 ^
f8e96a97 ^

0b5c4cbe ^
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