feat: added paddles and input for the paddles. Clears everything on screen instead of individual (faster and easier)
This commit is contained in:
+2
-1
@@ -1,10 +1,11 @@
|
||||
#ifndef INPUT_HPP
|
||||
#define INPUT_HPP
|
||||
#include "elements.hpp"
|
||||
|
||||
struct Input {
|
||||
int m_current_key = 0;
|
||||
char m_getch = ' ';
|
||||
void get_input(bool &r);
|
||||
void get_input(bool &r, Paddle &a, Paddle &b);
|
||||
};
|
||||
|
||||
#endif // INPUT_HPP
|
||||
|
||||
Reference in New Issue
Block a user