home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / networking / dnet / dnet2.3.2 / amiga / suplib / dead.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-29  |  470 b   |  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.