home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1447 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: easy.in-chemnitz.de!mkmk!floh
  2. From: floh@mkmk.in-chemnitz.de (Andre Weissflog)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Key up/down in inputevent handler
  5. Message-ID: <y5HYx*aD0@mkmk.in-chemnitz.de>
  6. Date: Fri, 19 Jan 1996 01:14:10 CET
  7. Reply-To: floh@mkmk.in-chemnitz.de
  8. References: <4dli3h$on7@vishnu.jussieu.fr>
  9. Distribution: world
  10. Organization: private uucp site
  11. X-Newsreader: Arn V 1.04
  12.  
  13. In article <4dli3h$on7@vishnu.jussieu.fr>, Francois PESSAUX (invite Hardin writes:
  14.  
  15. > Hi,
  16. > Does anyone know how I could determine if a RAWKEY event is due to a key down
  17. > or a key up ?
  18. > I created a handler that filters events, in order to notice me a keystroke.
  19. > But I when a key is pressed, 2 events are generated. One when the key is pressed
  20. > down, and one when the key is released. I'm only interrested in key pressed down.
  21. > How can I do this ?
  22.  
  23. Bit 7 of InputEvent.ie_Code tells you. If set, the key was released, 
  24. if cleared the key is down.
  25.  
  26. Bits 0..6 contain your raw key code.
  27.  
  28. Bye,
  29. -Floh.
  30.  
  31. ====//=== Andre Weissflog <floh@mkmk.in-chemnitz.de> =======
  32. ...// Sep'95: Return Of The Living Death...................
  33. \\// 90% of everything is crap (Sturgeon's Law)...........
  34. =\\===============================================Amiga!=
  35.  
  36.