arrowkey.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* $Id$
  2. * MegaZeux
  3. *
  4. * Copyright (C) 1996 Greg Janson
  5. * Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. /* ARROWKEY.H- Declarations for ARROWKEY.ASM */
  22. #ifndef __ARROWKEY_H
  23. #define __ARROWKEY_H
  24. extern char far kb_installed;/* Whether the keyboard routines are installed */
  25. extern char far up_pressed;
  26. extern char far dn_pressed;
  27. extern char far lf_pressed;
  28. extern char far rt_pressed;
  29. extern char far sp_pressed;
  30. extern char far del_pressed;
  31. extern char far key_code; /* Latest key code */
  32. extern char far keyb_mode; /* Set to 1 for different key discard code */
  33. extern char far curr_table; /* The current keyboard table (0/1) */
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. void far install_i09(void); /* Run to install keyboard code */
  38. void far uninstall_i09(void);/* Run to uninstall keyboard code */
  39. /* Run with param of 0 to switch to game mode keyboard, or param of 1 to
  40. switch to somewhat normal mode keyboard */
  41. void far switch_keyb_table(char table);
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif