home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / IYONIX / MANICMINER / SOURCE.ZIP / manicminer-1.6.3 / gfxlibs / svgalib / c / keyboard < prev    next >
Encoding:
Text File  |  2000-12-01  |  400 b   |  24 lines

  1. #include <vgakeyboard.h>
  2. #include "../../manic.h"
  3. #include "common.h"
  4. #include "keyboard.h"
  5.  
  6. int
  7. mm_keyb_pressed (int scancode)
  8. {
  9.   int counter;
  10.   if (scancode != KEYB_ANYKEY)
  11.     return (keyboard_keypressed (scancode));
  12.   else
  13.     for (counter = 1; counter < 127; counter++)
  14.       if (keyboard_keypressed (counter))
  15.     return (1);
  16.   return (0);
  17. }
  18.  
  19. void
  20. mm_keyb_update (void)
  21. {
  22.   keyboard_update ();
  23. }
  24.