🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Keyboard input via GetMsg().

#12441
From: Joseph P. Larson
Date: Mon, 01 May 1989 02:32
27 lines
1514 bytes
Okay.  Another dumb question.  I want my program to accept keyboard
commands including arrow keys, keypad, and function keys.  Thus, I
have set "VANILLAKEYS" in my window's idcmpflag field.  Then, when
I GetMsg() and it's a vanillakey, I handle the character.

Question 1: Is this the most efficient/reasonable way to get character
input.

Question 2: How come I'm not getting messages for arrow keys, about
half the keypad, and function keys?  Can I get these at all with
vanillakeys?  I tried rawkey instead, but I don't really want to
wade through all that crap it sends me.  Is this the only way?

Question 3: What do I really need to know about internationalizing
things?  (Or should I just go read a recent Amy Transactor for more
info on this last one?)

It's rather frustrating that my VANILLAKEYS won't give me half the
special keys on the keyboard.  Is this simply a shortcoming in my
keymap?

-Joe
-- 
Life is a cabaret (old chum).
UUCP: rutgers!dayton!joe   (Picts 1-13 are   DHDSC - Joe Larson/MIS 1060
ATT : (612) 375-3537       now ready.)       700 on the Mall, Mpls, Mn. 55402
Technical Details
Message-ID: <6529@dayton.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rutgers!dayton!joe

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rutgers!dayton!joe
From: joe@dayton.UUCP (Joseph P. Larson)
Newsgroups: comp.sys.amiga.tech
Subject: Keyboard input via GetMsg().
Keywords: rawkeys vanillakeys idcmp
Message-ID: <6529@dayton.UUCP>
Date: 1 May 89 02:32:35 GMT
Reply-To: joe@dayton.UUCP (Joseph P. Larson)
Organization: Dayton-Hudson Dept. Store Co.
Lines: 27