Improved keyboard support

Discuss Daggerfall Unity and Daggerfall Tools for Unity.
Post Reply
User avatar
pango
Posts: 1489
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Improved keyboard support

Post by pango » Fri Nov 02, 2018 9:14 am

Many things can be triggered from keyboard already, but sometimes I wish for more :)
Like <T> <H> to ride horse and <T> <F> to dismount, that kind of thing.
Shortcuts in menus:
- Yes/No
- Travel menu
- Talk/Sell/Repair
- ... (you name it)
Difficulty here may be to make those shortcuts translation-ready.
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 1489
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Improved keyboard support

Post by pango » Fri Nov 02, 2018 9:15 am

And the elephant in the room, but harder to implement...
Reaching for your spellbook or worse your list of trinkets and potions break the rhythm of combat:
- keyboard shortcuts for spells and magic items.
They're obviously too many to map them all, so assignments would have to be user-modifiable.
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 1489
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Improved keyboard support

Post by pango » Wed Sep 11, 2019 1:22 am

I started adding keyboard shortcuts to standard dialog boxen:
https://github.com/Interkarma/daggerfal ... rd-support

They're several "special" dialog boxen, rest, travel, so this is far from complete...
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
Cliffworms
Posts: 36
Joined: Sun Dec 30, 2018 6:24 pm
Location: Québec

Re: Improved keyboard support

Post by Cliffworms » Wed Sep 11, 2019 7:09 pm

Great ideas!

Using the "Use" key to quickly close loot/shopping/dialogue windows would be great too. :)
It would make for faster interactions, especially when you are asking around for rumors and have to ask several NPCs in a row.
Excuse the gloom.

User avatar
pango
Posts: 1489
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Improved keyboard support

Post by pango » Wed Sep 11, 2019 8:32 pm

I added support for options menu, rest menu, transportation menu.
I used the same Yes/No shortcut settings for dialog boxen and daedra princes prompts.
Also, I moved hardcoded loading screen and travel map shortcuts to external settings.

I'm not sure how to enumerate all the menus that exist in game; Guild prompts, shop prompts, it seems they're plenty and I'm sure to forget some of them...

(Same URL): https://github.com/Interkarma/daggerfal ... rd-support
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 1489
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Improved keyboard support

Post by pango » Sat Sep 14, 2019 11:47 am

I borrowed the HotkeySequence class from the Automap, extended it to support both physical and virtual modifiers (say, not only have LeftControl and RightControl modifiers, but also Control that matches either), then switched modifiers logic to ANDed instead of ORed together...

So for example the Inventory categories can be mapped to F1, F2, F3 and F4, or Control-W for weapons, Control-C for clothing, etc.

https://github.com/Interkarma/daggerfal ... rd-support
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
jayhova
Posts: 623
Joined: Wed Jul 19, 2017 7:54 pm
Contact:

Re: Improved keyboard support

Post by jayhova » Sat Sep 21, 2019 9:53 pm

I have suggested a number of times that the function keys that switch screens (Inventory and character sheets, etc.) be reachable from spaces other than the main screen. For instance you can go to the character sheet and then go to your inventory, spellbook, log or history. I seems reasonable that if there is a button to go to these pages from the character sheet, you should be able to go to these screens via a keyboard shortcut. It also seems reasonable that you not be forced to go back to the main screen afterwards. You should rather be able to move between the screens via shortcut keys at will.
Spoiler!
Image
Remember always 'What would Julian Do?'.
Windows 10 Pro 64 bit. DFU Ver. Alpha 0.10.7

Post Reply