home *** CD-ROM | disk | FTP | other *** search
/ Millennium Time Capsule / AC2000.BIN / disks / ac13disk / clock.237 / source / ehc-lib.h < prev    next >
Encoding:
Text File  |  1998-03-19  |  1002 b   |  52 lines

  1. /*
  2. ** [E]xternal [H]otkey [C]lient
  3. ** ----------------------------
  4. ** Library for using [Control]+[Alt] hotkeys with Clocky
  5. **
  6. ** (c) Petr Stehlik
  7. **     Jo Even Skarstein 1998
  8. */
  9.  
  10.  
  11. /*
  12. ** Initialise hotkeys
  13. ** ------------------
  14. ** Call this to initialise this library
  15. */
  16. int initHotkeys(void);
  17.  
  18. /*
  19. ** Register a hotkey
  20. ** -----------------
  21. ** 'key' is the scancode for the hotkey you wish to register.
  22. */
  23. int registerHotkey(char key);
  24.  
  25. /*
  26. ** Remove registered hotkeys
  27. ** -------------------------
  28. ** (key == -1) -> Remove all registered hotkeys
  29. ** otherwise remove 'key'.
  30. */
  31. void removeHotkeys(int key);
  32.  
  33. /*
  34. ** Check hotkeys
  35. ** -------------
  36. ** Returns the value of the pressed hotkey.
  37. ** If no hotkey is pressed, or it's not one of yours, this
  38. ** function returns 0.
  39. */
  40. char checkHotkeys(void);
  41.  
  42. /*
  43. ** Scancode -> ASCII
  44. ** -----------------
  45. */
  46. char scan2ascii(char scan);
  47.  
  48. /*
  49. ** ASCII -> Scancode
  50. ** -----------------
  51. */
  52. char ascii2scan(char ascii);