Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old December 6, 2008, 02:25   #1
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 58
Posts: 9,532
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
Number and arrow keys

Currently number keys are used in some circumstances as directions, arrow keys (ie the up, down, left, right arrows that are on most keyboards) are only ever used as directions, and keypad keys are usually mapped to numbers, regardless of whether NumLock is on or not. Can anyone give me a single good reason why the up, down, left, right keypad keys shouldn't be mapped to the arrows rather than numbers? I have at least one good reason why they should.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old December 6, 2008, 02:53   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 58
Posts: 9,532
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
OK, I think I've answered my own question. I changed this because it was mysteriously causing crashes in WinXP. So it appears that I'm stuck with either broken menu behaviour or crashes. Or at least Windows users are - the change seems to work fine in SDL.
EDIT: Works fine in x11, too.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.

Last edited by Nick; December 6, 2008 at 04:09.
Nick is offline   Reply With Quote
Old December 6, 2008, 14:47   #3
Donald Jonker
Knight
 
Join Date: Jun 2008
Posts: 593
Donald Jonker is on a distinguished road
It's strange how inconsistent numpad behavior is between variants. In V, there are no crashes, menus work fine, but if you map a spellbook/rod/scroll/whatever to an even number (e.g., @m2), it won't work.

As you said, in O/FA it's either menus or action+dir not working.

In NPP and others (I believe Heng, for one) everything works - inscribing even numbers along with everything else.

In some variants, you can (shift) run only with numlock off, in some (I believe only in O/FA) it doesn't matter.

I wonder why this should be so.
Donald Jonker is offline   Reply With Quote
Old December 6, 2008, 21:58   #4
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 58
Posts: 9,532
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
There are two substantive issues, and one weird one.
  1. .prf files, which translate actual keypresses into something the game understands. These will depend on operating system and potentially hardware, so there's lots of scope for them getting out of date or just wrong;
  2. Overlap in use between arrow and number keys. This is embedded fairly deep in the code; it's mostly OK, but gives scope for coding errors. This has been particularly striking with the new menu UI.
These don't stop maintainers from getting it right, they just make it easier for them to make errors.

In fact, I think I have now got all the issues sorted in O110u/FA (in development, at least), except for the crash issues in windows. Changing pref-win.prf, which fixed the crashes, has mean that the keypad arrows are behaving like numbers, which messes with the menus. I am intending to have a go at debugging this in windows soon, so I can sort out what is causing the crashes and allow the menus to work properly.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to find all the number-key maps Dawnmist Vanilla 6 March 24, 2008 19:47
Steam - What is that number after my damage dice? ekolis Variants 2 December 31, 2007 02:51


All times are GMT +1. The time now is 12:15.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.