Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!oliveb!amiga!kodiak
From: kodiak@amiga.UUCP (Robert R. Burns)
Newsgroups: comp.sys.amiga.tech
Subject: Re: How to use Alternate Keymap in Program
Keywords: keymap, console device, alternate
Message-ID: <4630@amiga.UUCP>
Date: 2 Oct 89 19:50:37 GMT
References: <1989Sep29.083458.101@hellgate.utah.edu>
Reply-To: kodiak@batgirl.UUCP (Robert R. Burns)
Organization: Commodore-Amiga Inc, Los Gatos CA
Lines: 15

In article <1989Sep29.083458.101@hellgate.utah.edu> derhak@cs.utah.edu (Max W. Derhak) writes:
)My question is:  What does a KeyMap structure look like, and is there a
)way I can load in a KeyMap into my program from DEVS:keymaps without
)using the cli command setkeymap.

The include file "devices/keymap.h" provides clues.  The KeyMap structure
address you pass to RawKeyConvert is embedded in the KeyMapNode structure
that hangs off the KeyMapResource (found via OpenResource("keymap.resource")).
Files in DEVS:keymaps are object files that, when LoadSeg()'d, contain a
KeyMapNode (at address *4+4).
-- 
Bob Burns, amiga!kodiak				   _
	| /_  _|. _ |	   Commodore __		  |_) _ |_  _ )'
	|<(_)(_)|(_\|<	    /\ |  ||| _` /\	  |_)(_\| )(_\ |
	| \ Software	___/..\|\/|||__|/..\___		   Faith