🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #1492

Re: How to use Alternate Keymap in Program

#1492
From: Robert R. Burns
Date: Mon, 02 Oct 1989 19:50
15 lines
1357 bytes
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 <result-of-LoadSeg-if-not-zero>*4+4).
-- 
Bob Burns, amiga!kodiak				   _
	| /_  _|. _ |	   Commodore __		  |_) _ |_  _ )'
	|<(_)(_)|(_\|<	    /\ |  ||| _` /\	  |_)(_\| )(_\ |
	| \ Software	___/..\|\/|||__|/..\___		   Faith
Technical Details
Message-ID: <4630@amiga.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!oliveb!amiga!kodiak
References: <1989Sep29.083458.101@hellgate.utah.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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