[comp.sys.amiga.tech] InputEvent Handling

markm@mcrware.UUCP (Mark Millard) (05/30/90)

I would like to solicit some help in understanding how to write
an InputEvent handler using the keyboard and/or input device.
What I am struggling with is how to map the ie_Code and ie_Qualifier
into the keymap to obtain an ASCII string.  I want to use the default
keymap, and I assumed there was an easy way to do this.  Is this
a bad assumption?  I was unable to find any functions or device
commands to do this.

I read that the console device can be used without a Intuition window.
I also found a console function which would do what I want (RawKeyConvert).
Unfortunately, I didn't understand how to obtain an InputEvent list
to pass to RawKeyConvert().  Am I supposed to install this function using
the "input" device?

Any help would be appreciated, espcially from someone who has had
experience using these drivers.

Thanks,

Mark Millard
email: sun!mcrware!markm
phone: 515-294-1929

Martin@pnt.CAM.ORG (Martin Taillefer) (05/30/90)

>I read that the console device can be used without a Intuition window.
>I also found a console function which would do what I want (RawKeyConvert).
>Unfortunately, I didn't understand how to obtain an InputEvent list
>to pass to RawKeyConvert().  Am I supposed to install this function using
>the "input" device?

As an input handler, you are passed a pointer to an input event to process.
You can submit this input event to RawKeyConvert directly and you get ANSI
sequences. Works well.

--
-------------------------------------------------------------
Martin Taillefer   INTERNET: martin@pnt.CAM.ORG   BIX: vertex
UUCP: uunet!philmtl!altitude!pnt!martin     TEL: 514/640-5734