00001
00002
00003
00004
00005
00014 #ifndef _KEY_H_
00015 #define _KEY_H_
00016
00017 #include <GNU_defs.h>
00018
00019 #define KEYCODE
00020
00021
00023 #define KEYCOL 6
00024 #define KEYROW 4
00025
00026 #define GETROW(key) (key>>4)
00027 #define GETCOL(key) (key&0x0f)
00028
00031 typedef void __attribute__((far))(*key_callback)(void *);
00032
00033
00044 ssize_t __attribute__((far))Keyrx(int count, u8 *buffer);
00045
00050 char __attribute__((far))Key_getch(void);
00051
00061 int __attribute__((far))KeyCall(key_callback callback, void *privatedata);
00062
00065 #endif