ShrikeDeCil: The ? help screen lists '5' as a movement key, and gives 's' as 'remain motionless one turn'. But hitting 5 actually triggers the keybinding thing (Mac OS X SDL version, if that matters). I first noticed it with the keypad-5, but the 'top row' numbers doesn't have '5' hooked up either.
So... I'd really like to have 5 hooked up, and it seems easy enough to bind '5' to 'hit s once', but... hum. How to you 'accept' a keybinding, or otherwise indicate "hey, I'm done, use it!"
DarkGod: It should detect autoamtically all actions that take a turn. So if you press 5, say yes and then press s it will bind (and tell you it did)
ShrikeDeCil: This puzzled me some. Because I had thought that that was exactly what I was doing... and not getting a binding. There's an extra keypress in there to dismiss the second 'dialog'. That is:
Keypresses On Screen result KEYPAD-5 dialog - "This key has no use... y/N" y dialog - "Please perform the action you wish to bind." s topline - "Type '?' for help." ESC dialog - "Binding Cancelled."
(Keypad-5 also gives 'Binding Canceled')
I figured out what I needed to do - the "Please perform" dialog needs something to dismiss it before the "action to be bound" is actually performed. aka - hit anykey _then_ hit s.
Both dialogs imply that the recording is going on while the second dialog is displayed, but it seems like the recording begins after that dialog is dismissed. To fix this, I'd move the 'help about binding' into the second message.
Suggested first message: "The key you just pressed is not currently used. Do you wish to bind this key to an action? (y/N)"
- - with the answers in a different color, like bright green or yellow.
Suggested second message: "You've chosen to bind a key to an action. The escape key and the original button will stop the binding at any time. Press ENTER, then perform the action you wish bound."
With possibly a comment about how to find further information. "You can read your saved binding s in file xxxx, where you can delete a line if it is causing problems." Or however that works.
DarkGod: Yeah true, I'll change the messages, thanks!
ToME Wiki