Youda008 / DoomRunner

Preset-oriented graphical launcher of various ported Doom engines (an alternative to ZDL)
GNU General Public License v3.0
205 stars 13 forks source link

Presets, IWADS, maps can only be activated with mouse #23

Closed DanilaSpevak closed 3 years ago

DanilaSpevak commented 3 years ago

In DoomRunner 1.3.2, when you change active preset, IWAD or map pack with keyboard arrows Up/Down, nothing happens. You have to actually click the item with mouse.

Youda008 commented 3 years ago

Pressing enter will now confirm your choice selected with arrow keys. Is that enough?

DanilaSpevak commented 3 years ago

That's one way to do it, but still not perfect for two reasons: a) it still requires you to make one extra action, and b) you still get an inconsistent picture without any indication.

If you are worried about performance issues when scrolling with pressed arrow, you might add some async timer (0.1 sec is actually enough) which resets when you activate list item. So when you hold an arrow button, the timer keeps resetting, and 0.1 sec after you release it you'll have your preset (or iwad, or map pack) selected. Same with Shift+Arrow in map pack list. Although, I've no idea how hard it would be to implement/use such timer in your project.

Youda008 commented 3 years ago

Done. Will be part of next release.