home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / suplib.lzh / SUPLIB / SRC / DEAD.C < prev    next >
C/C++ Source or Header  |  1991-08-16  |  470b  |  26 lines

  1.  
  2.  
  3. /*
  4.  *
  5.  *  DEAD.C
  6.  */
  7.  
  8. #include <local/typedefs.h>
  9.  
  10. int
  11. DeadKeyConvert(msg,buf,bufsize,keymap)
  12. struct IntuiMessage *msg;
  13. UBYTE *buf;
  14. int bufsize;
  15. struct KeyMap *keymap;
  16. {
  17.     static struct InputEvent ievent = { NULL, IECLASS_RAWKEY };
  18.     if (msg->Class != RAWKEY)
  19.     return(-2);
  20.     ievent.ie_Code = msg->Code;
  21.     ievent.ie_Qualifier = msg->Qualifier;
  22.     ievent.ie_position.ie_addr = *((APTR *)msg->IAddress);
  23.     return(RawKeyConvert(&ievent,buf,bufsize,keymap));
  24. }
  25.  
  26.