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