home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / program / code / desklib / DeskLib / !DeskLib / h / Kbd < prev    next >
Encoding:
Text File  |  1995-07-17  |  774 b   |  44 lines

  1.  
  2. #ifndef __dl_kbd_h
  3. #define __dl_kbd_h
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #ifndef __dl_core_h
  8. #include "core.h"
  9. #endif
  10. extern BOOL Kbd_KeyDown(int keynum);
  11. typedef enum
  12. {
  13. inkey_ADJUST = -12, 
  14. inkey_MENU = -11, 
  15. inkey_SELECT = -10, 
  16. inkey_RALT = -9, 
  17. inkey_LALT = -6, 
  18. inkey_ALT = -3, 
  19. inkey_RCTRL = -8, 
  20. inkey_LCTRL = -5, 
  21. inkey_CTRL = -2, 
  22. inkey_RSHIFT = -7, 
  23. inkey_LSHIFT = -4, 
  24. inkey_SHIFT = -1 
  25. } kbd_neginkey;
  26. extern char Kbd_GET(void);
  27. typedef struct
  28. {
  29. unsigned alt : 1;
  30. unsigned ctrl : 1;
  31. unsigned shift : 1;
  32. unsigned left_alt : 1;
  33. unsigned left_ctrl : 1;
  34. unsigned left_shift : 1;
  35. unsigned right_alt : 1;
  36. unsigned right_ctrl : 1;
  37. unsigned right_shift : 1;
  38. } kbd_modifiers;
  39. extern kbd_modifiers Kbd_GetModifiers(BOOL detailed);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif
  44.