Adding more keyboard support

Discussion among members of the development team.

Moderator: Forum Moderators

Kingsley
Posts: 42
Joined: August 28th, 2004, 3:23 am
Location: NYC
Contact:

Adding more keyboard support

Post by Kingsley »

Its it possible to add a few more controls to the keyboard and not exclusively to the mouse.

the ones I have in particular is:

1. key configuration option for scrolling the map (currently arrow key).

2. Moving and attacking units using the keyboards.

3. A key for backwards scrolling to the previous unit (opposite of the 'next unit key').

You can already select units using the keyboard, out of these the only major one I see here is moving units using the keyboard. Perhaps you implement it in that after you select the unit, you use a few keys to select the area where you want the unit to move, and press enter when you want the unit to actually move there.

- Kingsley
Kingsley
Posts: 42
Joined: August 28th, 2004, 3:23 am
Location: NYC
Contact:

Post by Kingsley »

Isn't anyone going to respond?
cedric
Posts: 320
Joined: January 24th, 2004, 10:27 pm
Location: Rennes, France
Contact:

Post by cedric »

If you haven't done already, please submit a feature request.

http://bugs.wesnoth.org

--
Cedric
Circon
Posts: 1200
Joined: November 17th, 2003, 4:26 am
Location: Right behind Gwiti, coding

Post by Circon »

Yuck. Map is hex-based, so keyboard movement would get clunky (unless we invented a new movement keyset, which would push old hotkeys out of the way) and besides, it's annoying for units of move 6+ to move 1 tile at a time.
Ayin
Inactive Developer
Posts: 294
Joined: March 30th, 2004, 4:45 pm
Location: Nîmes, France
Contact:

Post by Ayin »

I agree. Software always should be used entirely without a mouse.

Well, I guess I just have to code, then? ^^
Circon
Posts: 1200
Joined: November 17th, 2003, 4:26 am
Location: Right behind Gwiti, coding

Post by Circon »

Ayin wrote:I agree. Software always should be used entirely without a mouse.

Well, I guess I just have to code, then? ^^
What? I said keyboards would be clunky and the mouse is preferable, you *agree* and you say *should have no mouse*.
Ayin
Inactive Developer
Posts: 294
Joined: March 30th, 2004, 4:45 pm
Location: Nîmes, France
Contact:

Post by Ayin »

Circon: I agree with Kingsley, not with you, you Angband-player! *grin*

By the way, mouse is indeed preferable. However, good programs should always be totally functional using only a keyboard.
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

Movement wouldn't be that clunky.

You would move a cursor around with the keyboard. i.e. the highlighted hex of where the mouse is over would be the cursor. You would not use diagonals -- just up, down, left, right. This means moving left or right moves half a hex up/down, but that's fine.

To move a unit, you move the cursor onto it, then you press enter/space, and it selects the unit. Then you move the cursor to where you want the unit to move to, and press enter/space again.

This is how it worked in Master of Monsters and it was really pretty usable.

You would not do the Civilization-style of selecting a unit and then when you press a cursor button it actually moves the unit. That wouldn't work nicely at all.

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
Kingsley
Posts: 42
Joined: August 28th, 2004, 3:23 am
Location: NYC
Contact:

Post by Kingsley »

Personally the ones I'm MOST interested in is remapping the scrolling keys.

Since some of the developers already see this do I still have to file a bug report?

-Richard
silene
Posts: 1109
Joined: August 28th, 2004, 10:02 pm

Post by silene »

Kingsley wrote:Since some of the developers already see this do I still have to file a bug report?
Yes, please.
joshbosh321
Posts: 212
Joined: May 14th, 2004, 10:10 pm
Location: East Brunswick, NJ

Post by joshbosh321 »

I'm with Kingsley on this one. I'd love to be able to hit "n" until I got to the unit I wanted, then say where I want it to go using the arrow keys.

Like David said, it wouldn't be that hard, just have left-right move along the x axis and up-down move along the y. So what if it doesn't translate into the right directions?
Space is big. You just won't believe how vastly, hugely, mind- bogglingly big it is. I mean, you may think it's a long way down the road to the drug store, but that's just peanuts to space.

---Douglas Adams
Shadowfury333
Posts: 92
Joined: October 10th, 2004, 1:10 am
Location: In a wonderful place full of fire, and brimstone, and red guys poking me in the butt with pitchforks

Post by Shadowfury333 »

why not have:
w-up
s-down
q-left(upwards)
a-left(downwards)
e-right(upwards)
d-right(downwards)

not necessarily those commands, but something like it.
Darkness called… But I was on the phone, so I missed him. I tried to *69 Darkness, but his machine picked up. I yelled "PICK UP THE PHONE, DARKNESS!", but he ignored me. Darkness must have been screening his calls.
—Night Elf Demon Hunter
User avatar
turin
Lord of the East
Posts: 11662
Joined: January 11th, 2004, 7:17 pm
Location: Texas
Contact:

Post by turin »

Shadowfury333 wrote:why not have:
w-up
s-down
q-left(upwards)
a-left(downwards)
e-right(upwards)
d-right(downwards)

not necessarily those commands, but something like it.
because some of those are used for current hotkeys, i'm pretty sure. plus, it 1) takes up space and 2) is more complex than just arrowkeys.
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

Most likely you'd have hjkl, like vim :)

Although I must admit I really can't see why this is that necessary.

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
dms
Posts: 56
Joined: August 11th, 2004, 9:08 pm
Location: New Zealand

Post by dms »

Freeciv in hex mode uses 7,8,9,1,2,3 on the keypad and it works pretty well.
Post Reply