🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
3 messages
3 total messages Started by Spaceman Spiff Mon, 28 Dec 1992 05:21
how to swap keys?
#885
Author: Spaceman Spiff
Date: Mon, 28 Dec 1992 05:21
8 lines
647 bytes
i've got a game in which the movement of the cursor is controlled by the
a,w,s and z keys. i find this incredibly annoying and uncomfortable. is there
any way for me to be able to swap the a, w, s and z keys with the left, up,
right and down cursor keys respectively?
all help will be greatly appreciated.
---
later,
sunil
Re: how to swap keys?
#1084
Author: Brennecke N. Farrer
Date: Thu, 07 Jan 1993 03:26
24 lines
1513 bytes
In article <92363.002140SXK129@psuvm.psu.edu> Spaceman Spiff <SXK129@psuvm.psu.edu> writes:
>i've got a game in which the movement of the cursor is controlled by the
>a,w,s and z keys. i find this incredibly annoying and uncomfortable. is there
>any way for me to be able to swap the a, w, s and z keys with the left, up,
>right and down cursor keys respectively?
>all help will be greatly appreciated.

You could write a keyboard ISR that remaps the a,w,s, and z keys
the arrow keys.  You'd have to hook int 16h and check for those
keystrokes in the keyboard buffer.  Alternately you could write a TSR
that handles the game port and stuffs the keyboard with a,w,s and z.
Then you could use a joystick.

- Brennecke N. Farrer





-- 
Brennecke N. Farrer	    Internet addresses: bfarrer@silver.ucs.indiana.edu
(317)-497-1692					bfarrer@venus.ucs.indiana.edu
Programmer, M.A.I.L.CODE Lafayette IN 47901     (317)-448-4222
I don't speak for my employer, only for me.
Re: how to swap keys?
#1086
Author: Joi L. Ellis
Date: Thu, 07 Jan 1993 17:38
39 lines
2216 bytes
bfarrer@silver.ucs.indiana.edu (Brennecke N. Farrer) writes:

>In article <92363.002140SXK129@psuvm.psu.edu> Spaceman Spiff <SXK129@psuvm.psu.edu> writes:
>>i've got a game in which the movement of the cursor is controlled by the
>>a,w,s and z keys. i find this incredibly annoying and uncomfortable. is there
>>any way for me to be able to swap the a, w, s and z keys with the left, up,
>>right and down cursor keys respectively?
>>all help will be greatly appreciated.

>You could write a keyboard ISR that remaps the a,w,s, and z keys
>the arrow keys.  You'd have to hook int 16h and check for those
>keystrokes in the keyboard buffer.  Alternately you could write a TSR
>that handles the game port and stuffs the keyboard with a,w,s and z.
>Then you could use a joystick.

>- Brennecke N. Farrer

You can also experiment with vanilla ANSI.SYS and see if it will perform
that function for you.  We successfully removed undesirable commands
from a bulletin board console by mapping all the control and function
keys to null.  (The console was publicly accessible and we didn't want
passers-by messing with it.)  You may or may not be able to map the
cursor keys this way.  We created a text file containing all the mapping
commands, and have the workstation TYPE it before loading the BBS
software.  We have another that deletes the mappings when the BBS is
shut down.





>-- 
>Brennecke N. Farrer	    Internet addresses: bfarrer@silver.ucs.indiana.edu
>(317)-497-1692					bfarrer@venus.ucs.indiana.edu
>Programmer, M.A.I.L.CODE Lafayette IN 47901     (317)-448-4222
>I don't speak for my employer, only for me.
-- 
Joi Ellis                      msjle@uxa.ecn.bgu.edu
Student Residential Programs   Western Illinois University
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads