diff options
Diffstat (limited to 'utils/adlmidi-2/input.hpp')
-rw-r--r-- | utils/adlmidi-2/input.hpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/utils/adlmidi-2/input.hpp b/utils/adlmidi-2/input.hpp index 0cafd51..6d0a796 100644 --- a/utils/adlmidi-2/input.hpp +++ b/utils/adlmidi-2/input.hpp @@ -29,14 +29,23 @@ static const unsigned NewTimerFreq = 209; # include <csignal> #endif +#if defined(HAS_TERMIO) +typedef struct termio InputTermio_t; +#elif defined(HAS_TERMIOS) +typedef struct termios InputTermio_t; +#else +# error Undefined type for termio; +#endif + class xInput { - #ifdef _WIN32 +#ifdef _WIN32 void *inhandle; - #endif - #if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) && !defined(__APPLE__) - struct termio back; - #endif +#endif +#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) && !defined(__APPLE__) + InputTermio_t back; +#endif + public: xInput(); ~xInput(); |