eraps2@aspvax.UUCP (09/30/87)
[]
Has anyone used RawKeyConvert()? The update manual states that you
must be using the console device to make use of it. Since I didn't
want to, I wrote my own, then realized that I didn't know how to get
the keymap - I didn't have a CreateStdIO() I/O port. So I loaded a
keymap from disk to test the routine. Then it hit me - maybe you only
need console.device to get the keymap? Has anyone tried this? How can
I get the default keymap for the system? I didn't see the keymap name
in the preferences struct. Is there a load keymap function? Currently,
I just load the map and adjust the pointer returned by LoadSeg().
"You don't mean/I'm afraid/But by now Rob Ginn
she could be/Yes" -- TMM ...burdvax!jtids!aspvax!eraps2
...sun!liberty!drexel!aspvax!eraps2
eraps1@nadc.arpadillon@CORY.BERKELEY.EDU.UUCP (10/01/87)
>Has anyone used RawKeyConvert()? The update manual states that you >must be using the console device to make use of it. Since I didn't >want to, I wrote my own, then realized that I didn't know how to get >the keymap - I didn't have a CreateStdIO() I/O port. So I loaded a >keymap from disk to test the routine. Then it hit me - maybe you only >need console.device to get the keymap? Has anyone tried this? How can >I get the default keymap for the system? I didn't see the keymap name >in the preferences struct. Is there a load keymap function? Currently, >I just load the map and adjust the pointer returned by LoadSeg(). You can open a console device without openning a console device. That is, without specifying a window (see RKM). With this 'dummy' console device you can use CD_ASKDEFAULTKEYMAP to get the default keymap. RawKeyConvert() is a function in the CONSOLE.DEVICE LIBARARY VECTORS and thus you need to have an open console device to use it. -Matt
carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) (10/02/87)
In article <6751@aspvax.UUCP> eraps2@aspvax.UUCP writes: >[] > >Has anyone used RawKeyConvert()? The update manual states that you >must be using the console device to make use of it. >[] >How can I get the default keymap for the system? >[] Console.doc 1.2 autodocs for RawKeyConvert() state that passing a kmap arg of 0 gets you conversion to the current default keymap. You should be able to use the Enhancer manual example DeadKeyConvert() with kmap=0 and get what you want. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CATS >>Commodore Amiga Technical Support<< UUCP ...{allegra,ihnp4,rutgers}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=