DustRacing2D icon indicating copy to clipboard operation
DustRacing2D copied to clipboard

Help does not show correct controls when custom

Open Wuzzy2 opened this issue 6 years ago • 2 comments

When you customized the controls, the help screen is incorrect in that it shows the wrong controls (it always shows the default ones).

Version: 2.0.3

Wuzzy2 avatar Nov 08 '19 20:11 Wuzzy2

A good catch, but I'm afraid that this would be just way too painful to fix.

Could be possible to do something like this (if we don't mind breaking current translations of Help): https://stackoverflow.com/questions/21764138/get-the-name-of-a-key-from-qkeyevent-in-qt

I tested this a bit and it seems to work for most of the keys, but not for all. Another thing is that the custom controls use QKeyEvent::nativeScanCode() instead of QKeyEvent::key() for a reason I don't remember anymore.

juzzlin avatar Nov 22 '19 14:11 juzzlin

Another solution would be to not use a word, but a symbol instead.

Wuzzy2 avatar May 06 '20 02:05 Wuzzy2