fs2open.github.com icon indicating copy to clipboard operation
fs2open.github.com copied to clipboard

QtFred numpad camera key hold behavior

Open EatThePath opened this issue 3 years ago • 4 comments

Right now QtFred's camera moves once per numpad press, on release, rather than moving while the key is held. No idea if this is recent or an old thing, but it's a bit of a bother

EatThePath avatar Jun 28 '22 19:06 EatThePath

@z64555 Could this be related to the controls code?

Goober5000 avatar Jun 29 '22 23:06 Goober5000

Not likely. But I can give it a look.

z64555 avatar Jun 30 '22 19:06 z64555

qtfred/src/mission/EditroViewport.cpp:void EditorViewport::process_controls() Might be the one responsible. I'm not at all familiar with FRED's codepath much less qtFRED's.

In either case, both FRED and qtFRED appear to have their keybinds hardcoded. The only thing that the Controls PR's might have affected is Controls6's working with scancode vs. keycode.

@BMagnu may have more insight re: the scancode changes.

And of course EditorViewport is mostly @asarium's work.

z64555 avatar Jun 30 '22 23:06 z64555

I think I never got the numpad controls to work properly in qtFRED and maybe relied on some weird Qt hack to get it semi-working. Just from intuition I would guess that this is not related to the controls code changes.

asarium avatar Jul 02 '22 16:07 asarium