Article View: rec.games.programmer
Article #888Sun4
From: Daniele Piponi
Date: Thu, 27 Aug 1992 08:56
Date: Thu, 27 Aug 1992 08:56
19 lines
1346 bytes
1346 bytes
I was thinking of trying to rewrite some arcade game type programs that I have written for various 'toy' computers for a Sun4. (Defender on a large screen would be pretty neat!) To get the speed I want to write at a fairly low level so I use the pixrect routines to write to the screen. Is there an equivalent low level way of reading the keyboard state? I don't want to read the keyboard as a stream but test to see if a key is pressed at any moment. We have a distinct lack of documentation here so almost everything I know about the Sun is gleaned from (a minimal set of) man pages and deciphering include files. I guess I use ioctl() on /dev/kbd but I can't seem to get it to work. Maybe I shouldn't be doing this sort of thing... -- /\___/\ mail --> udah001 @ elm.cc.kcl.ac.uk \/o o\/ \_._/ Dan Piponi dpiponi @ maths1.mth.kcl.ac.uk
Technical Details
Message-ID:
<1992Aug27.085633.13963@ctr.columbia.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!caen!sol.ctr.columbia.edu!newsShow Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!caen!sol.ctr.columbia.edu!news From: dpiponi@bach.mth.kcl.ac.uk (Daniele Piponi) Subject: Sun4 Organization: Columbia University Center for Telecommunications Research Message-ID: <1992Aug27.085633.13963@ctr.columbia.edu> Sender: news@ctr.columbia.edu (The Daily Lose) Keywords: sun keyboard Date: Thu, 27 Aug 1992 08:56:33 GMT X-Posted-From: bach.mth.kcl.ac.uk X-Posted-Through: sol.ctr.columbia.edu Lines: 19