getkey.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* $Id$
  2. * MegaZeux
  3. *
  4. * Copyright (C) 1996 Greg Janson
  5. * Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
  6. * Copyright (C) 1999 Charles Goetzman
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. */
  22. /* GETKEY.H- Declarations for GETKEY.CPP */
  23. #ifndef __GETKEY_H
  24. #define __GETKEY_H
  25. #include "mouse.h"
  26. //Note- Be prepared to deal with MOUSE_EVENT!
  27. char keywaiting(void);
  28. int getkey(void);
  29. //Acknowledges you have dealt with the mouse event
  30. void acknowledge_mouse(void);
  31. //The event that caused the MOUSE_EVENT, call acknowledge_mouse
  32. //to actually pop it off of the queue (doesn't clear mouse_event)
  33. extern mouse_info_rec mouse_event;
  34. //If set to 1 (default) mouse events are automatically popped off of
  35. //the queue as soon as getkey returns a MOUSE_EVENT.
  36. extern char auto_pop_mouse_events;
  37. //If set to 0, help via F1 will be ignored
  38. extern char allow_help;
  39. #endif