Mapping Controls

All your questions answered.
Post Reply
Raimei
Pitiful-Looking Beggar
Posts: 2
Joined: Mon 21.12.2009, 21:26

Mapping Controls

Post by Raimei » Mon 21.12.2009, 21:29

Hello,

I am on a Macbook and I was wondering if there is a way to remap the controls?

Example:
q: move northwest
w: move north
e: move northeast
d: move west
c: move southeast
s: move south
z: move southwest
a: move west

Thanks in advance,
Raimei

Billsey
King Vampire
Posts: 272
Joined: Sun 12.02.2006, 14:36
Location: Oregon, USA
Contact:

Re: Mapping Controls

Post by Billsey » Tue 22.12.2009, 02:51

Yes, just change the appropriate .prf file in the lib/user directory (probably pref-mac.prf) and remap any commands or movements to be handled by a different keypress. You may find the built-in (sort of) rogue keyset to work, with the movement commands being (IIRC):

Code: Select all

uji
h l
nkm
Mangband Project Team Member

Emulord
King Vampire
Posts: 252
Joined: Mon 30.04.2007, 20:19
Location: UIUC

Re: Mapping Controls

Post by Emulord » Tue 22.12.2009, 03:59

now it would really be nice if there was a way to map multiple commands to one key, like (m)agic and (p)ray or combining (z)ap (u)se and (a)im since no one has more than 9 rods/wands or staves. This would need more client code probably so it could know which item handling code to run.

Raimei
Pitiful-Looking Beggar
Posts: 2
Joined: Mon 21.12.2009, 21:26

Re: Mapping Controls

Post by Raimei » Tue 22.12.2009, 07:10

Actually, I don't know if this matters, but I'm actually on a Macbook that has Fedora 12 installed (don't ask me why).

So what would be the correct .prf file to modify?

Billsey
King Vampire
Posts: 272
Joined: Sun 12.02.2006, 14:36
Location: Oregon, USA
Contact:

Re: Mapping Controls

Post by Billsey » Tue 22.12.2009, 21:42

All the mappings for roguelike keys are in pref.prf, regardless of the system type.
Mangband Project Team Member

Post Reply