nuklear_cross icon indicating copy to clipboard operation
nuklear_cross copied to clipboard

Key Events broken

Open ghost opened this issue 6 years ago • 2 comments

I don't know whether this is GDIP specific, but NKC_EKEY is broken. With the NKC demo as a template I'm listening for a key in the main loop. If I press a key it launches the program into 3 updates, all of type NKC_ENONE. Only if the key remains pressed, or if I repress it during those 3 updates, does it count as a NKC_EKEY.

As a result only "double taps" of a key get registered or holding the key down.

ghost avatar Jun 26 '18 09:06 ghost

Yes, it could be specific problem of GDI+. I did not used this event on GDI+ heavily... I would have a look at it a bit later.

DeXP avatar Jun 26 '18 10:06 DeXP

The problem is probably somewhere in the event processing: Function nkc_poll_events, call of PeekMessageW https://github.com/DeXP/nuklear_cross/blob/master/nkc_frontend/nkc_gdip.h#L305 The event is just not replaced by WM_KEYDOWN.

DeXP avatar Jul 05 '18 08:07 DeXP