🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

VANILLAKEYS and various other things

#10304
From: Brian Moffet
Date: Wed, 16 Nov 1988 18:44
47 lines
2253 bytes
1) Well, I was sitting at my desk one day hacking together
a small program and wanted to get keyboard input from a 
custom window.  Now I didn't want to attach a console device
to this sucker, so I thought, "Hey, I can use Vanillakeys!"
(sounds sort of like an IceCream sold off the coast of florida).
However, I am able to recieve normal key strokes, but
not the function keys.  Does anyone know why this might be?
I don't appear to be getting a message even.

Note:  I am using ConMan (fantastic program by the way)
and I am not sure if that has made a difference.

2) 1 bitplane workbench.  Is it possible to just free the
bitmap and rearrange the WB screen structure to get this
to work?  Seems simple enough so that I'll try it.

3) In the same program as #1, I poll a windows IDCMP message
port using GetMsg(W->UserPort).  If I receive a message I will
take some action.   This action may be to go to a subroutine 
which does a Wait(1<<W->UserPort->mp_SigBit).
When this happens, the wait will succeed when there is no new
message.  It apparently sees that there was a message.  I do 
ReplyMsg() properly, so I am not sure what is going on.  

-=-=-=-=-sample code fragment-=-=-=-=-
	while((mp = GetMsg(up)) == NULL);
	ReplyMsg(mp);
	Wait(1<<up->mp_SigBit);	/* This returns immediatly */

Does this behaviour seem proper?  I would think the ReplyMsg
would clear things out.   Is there a proper way of clearing
the signal?

Again, thanks for all the help.  I look forward to the 2500
and possibly the 3000, maybe I'll upgrade my 1000.  

brian m.

PS Matt, could you get in touch with me?  I had a hard disk
crash and lost your latest version of dmouse.  I have the
source, but not the binary or a Manx compiler.  tanx
-- 
Brian Moffet			{uunet,decvax!microsoft,ucscc}!sco!brianm
 -or-				...sco!alar!brian
"Evil Geniuses for a better tomorrow!"  My fish and company have policies.
					I have opinions.
Technical Details
Message-ID: <1732@scolex>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!sco!brianm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!sco!brianm
From: brianm@sco.COM (Brian Moffet)
Newsgroups: comp.sys.amiga.tech
Subject: VANILLAKEYS and various other things
Keywords: function keys?
Message-ID: <1732@scolex>
Date: 16 Nov 88 18:44:42 GMT
Organization: The Santa Cruz Operation, Inc.
Lines: 47