Files
snake/include/input.hpp
T

12 lines
202 B
C++

#ifndef INPUT_HPP
#define INPUT_HPP
#include "element.hpp"
struct Input {
enum Direction m_current_key = NONE;
int m_getch = 0;
void get_input(enum Direction &dir, bool &r);
};
#endif // INPUT_HPP