🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: input.device stuff

#9624
From: Jim Mackraz
Date: Sun, 28 Aug 1988 21:45
28 lines
1589 bytes
In article <788@applix.UUCP> scott@applix.UUCP (Scott Evernden) writes:
)I am trying to feed a stream of ASCII characters into the input.device.
)I'm trying to simulate keyboard activity.
)
)The input.device expects (optionally qualified) raw key presses and
)releases.  So, to do what I want, for each character, I must determine
)a raw key code and appropriate qualifiers which will generate it.  In
)other words, I need something like a RawKeyConvert() that runs backwards
)(accepts ASCII and produces a raw key event).

The function InvertKeyMap() in commodities.library (part of Commodities
Exchange) does what you want.  Source has been distributed, but you
can't steal hunks of it wholesale.  Perhaps you will find ikm.c
educational.

One good think about it living in a library (hopefully soon to be
semi-standard) is that it undoubtedly has bugs (none known) which can
be fixed retroactively for client programs by updating the library.

And don't forget dead keys.

	jimm

-- 
	Jim Mackraz, I and I Computing	  
	amiga!jimm	BIX:jmackraz
Opinions are my own.  Comments regarding the Amiga operating system, and
all others, are not to be taken as Commodore official policy.
Technical Details
Message-ID: <2814@amiga.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!killer!ames!oliveb!amiga!jimm
References: <788@applix.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!killer!ames!oliveb!amiga!jimm
From: jimm@amiga.UUCP (Jim Mackraz)
Newsgroups: comp.sys.amiga.tech
Subject: Re: input.device stuff
Message-ID: <2814@amiga.UUCP>
Date: 28 Aug 88 21:45:52 GMT
References: <788@applix.UUCP>
Reply-To: jimm@cloyd.UUCP (Jim Mackraz)
Organization: Commodore-Amiga Inc, Los Gatos CA
Lines: 28