From 7015245de4af673af3e6fa62d5d0f9c2e0c2a8a1 Mon Sep 17 00:00:00 2001 From: jonas Date: Thu, 27 Dec 2018 00:26:34 +0100 Subject: cleaned working tree --- AmpelJonas/cInput.h | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 AmpelJonas/cInput.h (limited to 'AmpelJonas/cInput.h') diff --git a/AmpelJonas/cInput.h b/AmpelJonas/cInput.h deleted file mode 100644 index 8e3481c..0000000 --- a/AmpelJonas/cInput.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -* cInput is responsible for Handling everything related to setting up and managing the console window -* as well as decoding keyboard and mouse events. -* Compatible with xterm compatible terminal emulators -*/ - -#ifndef CINPUT_H_ -#define CINPUT_H_ - -#include -#include -#include -#include - -#ifdef __linux__ -#elif _WIN32 - #error "Platforn not supported" -#else - #error "Platforn not supported" -#endif - -#define _EVENT_NULL 0 -#define _EVENT_CHAR 1 -#define _EVENT_KEY 2 -#define _EVENT_MOUSE 3 - -struct sInputEvent -{ - unsigned int type; - unsigned char c; - unsigned int b; - unsigned int x, y; -}; - -class cInput -{ -public: - cInput(); - - ~cInput(); - - sInputEvent poll(); - -private: - struct termios original, raw; -}; - -#endif /* end of include guard: */ -- cgit v1.2.3