Nuklear/demo
Robert Winkler 36a8d2a5ad Fix issue 548
The issue was introduced in the fix for 416 (commit 8559aeb).

The original problem was (backspace and arrows moving too fast) is not a
nuklear problem but a GLFW problem.  Because of the way nuklear handles
input (it must be between input_begin and end), the key callback method
GLFW offers is not an option.

So we have to use glfwGetKey() which returns the current state of a key
not whether it was just pressed or released, so nuklear acts like it
was pressed every single frame, hence the "too fast" problem.

The fix checks for state change and discards the event if there was
no change.  This kills key repeat behavior (for named keys) on
*all* platforms which makes deleting or arrowing inconvenient.

Since there's no way to fix the shortcomings of a callback vs event
based input API, my "fix" just makes the original fix conditional
on a macro NK_KEYSTATE_BASED_INPUT
2018-10-30 00:43:01 -07:00
..
allegro5 TRAVIS: include demo windows and activate warnings 2018-01-02 08:26:29 +01:00
d3d9 Update demos to new color picker API 2018-01-05 13:09:27 +01:00
d3d11 demos: fix typo (clipbard --> clipboard) 2018-09-15 06:52:10 +02:00
gdi demos: fix typo (clipbard --> clipboard) 2018-09-15 06:52:10 +02:00
gdip demos: fix typo (clipbard --> clipboard) 2018-09-15 06:52:10 +02:00
glfw_opengl2 Fix issue 548 2018-10-30 00:43:01 -07:00
glfw_opengl3 Fix issue 548 2018-10-30 00:43:01 -07:00
glfw_opengl4 Fix issue 548 2018-10-30 00:43:01 -07:00
sdl_opengl2 demos: fix typo (clipbard --> clipboard) 2018-09-15 06:52:10 +02:00
sdl_opengl3 demos: fix typo (clipbard --> clipboard) 2018-09-15 06:52:10 +02:00
sdl_opengles2 demos: fix typo (clipbard --> clipboard) 2018-09-15 06:52:10 +02:00
sfml_opengl2 Update demos to new color picker API 2018-01-05 13:09:27 +01:00
sfml_opengl3 Update demos to new color picker API 2018-01-05 13:09:27 +01:00
x11 Applied patch from #603 for panel border drawing 2018-01-28 11:48:44 +01:00
x11_opengl2 correct major/minor version of opengl in x11_opengl2 2018-03-23 16:14:32 +01:00
x11_opengl3 Update demos to new color picker API 2018-01-05 13:09:27 +01:00
x11_rawfb nuklear_rawfb: Use pitch in offset calculation 2018-02-04 17:08:17 +01:00
x11_xft xlib: Add support for x11_xft for antialiases fonts 2018-06-21 13:41:04 +01:00
calculator.c Fixed edit multiline widget width calculation 2016-11-14 19:21:49 +01:00
node_editor.c Update demos configurables and removed warnings 2018-01-01 17:20:55 +01:00
overview.c overview.c: Fix an out of bound access 2018-06-21 11:08:28 +01:00
style.c Update demos configurables and removed warnings 2018-01-01 17:20:55 +01:00