golang-ui / nuklear

This project provides Go bindings for nuklear.h — a small ANSI C GUI library.
https://github.com/vurtun/nuklear
MIT License
1.57k stars 98 forks source link

Keypad enter key does not work #60

Open jkvatne opened 6 years ago

jkvatne commented 6 years ago

There is a problem with the handling of enter keys. The backend returns different codes for the normal enter key and the keypad enter key, but nuklear.h checks only one. This is very confusing. We can either change nuklear.h and check both, or we can modify impl_glfw_common.go to deliver the same code for both . Both are easy to do. Which way is best?

jkvatne commented 6 years ago

In fact, there is another, related problem. The enter keys have a very fast repeat. The other keys does not repeat when held down, but the enter keys repeat after just a fraction of a second. I can not see any reason for this.

xlab commented 6 years ago

we can modify impl_glfw_common.go to deliver the same code for both .

this is correct, as the package should not modify the original nuklear.h

key repeats are managed by the platform code also