[Topic Split] Options for keybinding management

Send your ideas and suggestions here.

Moderator: Board moderators

Cowboy
Luser
Posts: 21
Joined: Thu Nov 04, 2004 5:57 pm

Post by Cowboy »

Looking at the code in the gtk client, it seems it does try to use
playername.keys on win32.

Ideally, we'd have functions like:

clear_key_bindings()

load_key_bindings(key set)

On client startup, it would load a default keyset.
It would then scan the keys directory, and turn each keyset found into a
menu option, so you could have an option like:

Key bindings -> (list of keysets to choose)

Selecting one, would clear the old bindings, and load the new ones.

You'd also have a save key bindings option, to save the current bindings, to
a certain name, or save them to be the default.

Does this seem logical? If so, I think I can manage to implement it (my C isn't
amazing, but the logic is simple enough I should be able to manage)

Thoughts?
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post by cavesomething »

I like the design, it seems very elegant. Might be best to not reload the menus during runtime though, a client restart being required seems reasonable IMHO.
Aaron
Senior member
Posts: 496
Joined: Sun Jan 30, 2005 9:04 pm
Location: New Jersey
Contact:

Post by Aaron »

should be after you log in, it promts you to load a keybing set. it should also have a link in the menu so we can call it for spellcasting.bind and fighting.bind. then we could also map it to keys, so F11 does spellcasting, and F12 will be my warior.
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post by cavesomething »

The thing with mapping to keys is that then you need to have a multimodal system. My previous comment about vi was a joke, honest.

Anyway, emacs is a far better model for crossfire - it already can read mail :)

:wq
Cowboy
Luser
Posts: 21
Joined: Thu Nov 04, 2004 5:57 pm

Post by Cowboy »

Aaron wrote:should be after you log in, it promts you to load a keybing set. it should also have a link in the menu so we can call it for spellcasting.bind and fighting.bind. then we could also map it to keys, so F11 does spellcasting, and F12 will be my warior.
Should be easy enough, there would have to be a client command anyway, like:
keymap warrior

You could bind that to a key in a different keymap.
Might take some time, and cause a bit of confusion if you are binding keys to adjust
the key bindings, but the average player probably wouldn't bother, and those that
wanted to take the time, could enjoy the flexibility.

I'll start playing with this over the weekend, and see how it goes.
Post Reply