Commit Graph

1891 Commits

Author SHA1 Message Date
Robert Winkler b6d5293dfb Add NK_KEYSTATE_BASED_INPUT changes to src files
Updated nuklear_input.h CHANGELOG and HEADER and regenerated nulear.h
2018-10-31 12:42:30 -07:00
Robert Winkler 1a6c30693f Add NK_KEYSTATE_BASED_INPUT documentation comment 2018-10-30 16:51:45 -07:00
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
Dmitry Hrabrov 272f1b9a05
Create Readme.md for OpenGL ES 2018-10-28 14:31:00 +03:00
Dmitry Hrabrov bb21a3c836
Add Raspberry Pi to OpenGL ES2 makefile 2018-10-28 14:08:15 +03:00
Dmitry Hrabrov 4566f8de22
Merge pull request #2 from vurtun/master
Syncing fork to the original repository
2018-10-28 14:05:58 +03:00
Brain Developer 721b3755f4
I removed an additional #include <math.h>
I found an additional "#include <math.h>" so I removed it.
Thinking that it was additional.
2018-10-22 21:10:01 +05:30
Micha Mettke 19c14bb777
Merge pull request #726 from grynca/master
fix unaligned access in murmur hash
2018-10-21 00:20:34 +02:00
Kenney Phillis Jr 3121e6cb2a gdi demo: Implement nk_gdi_rect_multi_color.
This implements the GDI Rect Multicolor functions. This will work without
any problems when targetting Windows 2000 and up.

TODO: Fix Alpha blending. The Color Matrix does not render correctly.
2018-10-18 18:13:56 -05:00
Kenney Phillis Jr 9c2af0124d gdi demo: fix style issues.
A small fix of style where tabs are replaced with spaces.
2018-10-18 18:13:36 -05:00
mischief 850752b01e fix nk_window_find prototype in documentation 2018-10-17 18:18:42 -07:00
dumblob 2a379bc038
Merge pull request #741 from vtorri/master
demos: fix typo (clipbard --> clipboard)
2018-09-16 14:01:34 +02:00
Vincent Torri 1fdf7828af demos: fix typo (clipbard --> clipboard) 2018-09-15 06:52:10 +02:00
grynca 9ee9dca307 unwinding memcpy to 4x byte assignments 2018-09-05 19:35:16 +02:00
Micha Mettke 0275cc5789
Merge pull request #711 from Lusted4ever/master
Boundings width adjusting, removal of gaps. (rounding errors)
2018-08-30 20:34:06 +02:00
Maxim Kasperski 9c87b9f5e5
Update nuklear.h 2018-08-30 12:33:03 +03:00
Maxim Kasperski f9c0977f35
Update nuklear_layout.c 2018-08-30 12:30:19 +03:00
Micha Mettke 744cd2cc93
Merge pull request #729 from diggit/fixes
Fixes of scrollbar drag and dynamic panel footer filling
2018-08-29 21:18:45 +02:00
Micha Mettke 997e6cc981
Merge pull request #730 from FredrikHson/master
make the size of nk_draw_index an option.
2018-08-29 21:17:15 +02:00
Micha Mettke 4ff9fe6dc6
Merge pull request #725 from quink-black/fix-nk_begin_titled
nuklear_window: fix misleading variable names
2018-08-29 21:15:30 +02:00
Micha Mettke 961b411123
Merge pull request #716 from quink-black/dev
Fix NK_INT8 type
2018-08-29 21:14:52 +02:00
Fredrik Hansson 26c6e246b7 changed the boolean logic for the assert for the size of nk_draw_index 2018-08-27 21:33:02 +02:00
Fredrik Hansson 2b03f44898 make the size of nk_draw_index an option, also make the documentation a bit more clear. 2018-08-27 10:01:53 +02:00
Fredrik Hansson 5cea113a9c fix #718 by moving all the changes to src/nuklear.h 2018-08-27 09:38:05 +02:00
diggit e86fcabce7 fix scrollbar dragging behavior, similar to #688 2018-08-26 11:26:57 +02:00
diggit b17df7b463 fix wrong dynamic panel footer filling 2018-08-26 11:23:27 +02:00
diggit 6473a45543 Regenerate nukelar.h, unfortunately reverts #718
this elimites changes from #718 because they were done in generated file and not in sources. See PR thread for more info.
2018-08-26 02:10:40 +02:00
grynca 0101b3a0a7 fix unaligned access in murmur hash 2018-08-19 12:38:12 +02:00
Micha Mettke 956d33b89a
Merge pull request #718 from ecraven/fix-docs
Various small documentation changes and typo fixes.
2018-08-15 18:11:11 +02:00
Micha Mettke ddb1087c2c
Merge pull request #709 from drug007/patch-1
doc typo
2018-08-15 18:05:08 +02:00
Zhao Zhili 6fce4d209f nuklear_window: fix misleading variable names 2018-08-15 23:15:23 +08:00
Peter d3f57da54c Various small documentation changes and typo fixes. 2018-07-25 08:36:09 +02:00
Zhao Zhili f8bcf22960 Fix NK_INT8 type 2018-07-21 15:55:09 +08:00
Lusted4ever cac6ca59d7
Removed gaps, caused by dynamic layouting 2018-07-07 12:46:13 +03:00
Lusted4ever 7bba48fc0f
Removed gaps, caused by dynamic layouting 2018-07-07 12:35:12 +03:00
drug007 2ea07d8fae
typo 2018-07-06 12:11:24 +03:00
drug007 f38f0ccfb7
doc typo 2018-07-06 10:05:59 +03:00
Micha Mettke aeb1826913
Merge pull request #665 from upiter/patch-1
Fix `Error 65543: NSGL` on macOS
2018-06-29 21:45:42 +02:00
Micha Mettke 4ce3b6a0b3
Merge pull request #701 from buserror/fix-out-of-bound-access
overview.c: Fix an out of bound access
2018-06-29 21:43:12 +02:00
Micha Mettke cd1624e3aa
Merge pull request #702 from buserror/feature-xlib-xft
xlib: Add demo x11_xft for antialiased fonts
2018-06-29 21:42:45 +02:00
Michel Pollet 8ddb3e59f6 xlib: Add support for x11_xft for antialiases fonts
Looks a lot better.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2018-06-21 13:41:04 +01:00
Michel Pollet e5dee6bf3d overview.c: Fix an out of bound access
Access 8 elements in a 4 elements array.

Signed-off-by: Michel Pollet <buserror@gmail.com>
2018-06-21 11:08:28 +01:00
vurtun f42a76e176 Fixed #684 2018-06-10 17:40:55 +02:00
vurtun 38c8d54437 Merge branch 'diggit-nk_drag_fix' 2018-06-10 17:25:52 +02:00
vurtun b5eb3cd885 Fixed gcc integer conversion warning 2018-06-10 17:25:29 +02:00
diggit da07a235ab fix window dragging behavior (ignore on click) 2018-05-22 14:13:31 +02:00
vurtun b1209dbb2e Corrected separation 2018-05-14 15:41:16 +02:00
vurtun ae845fcb0b Fixed single-header packing mistake 2018-05-14 15:32:19 +02:00
vurtun 299446aeca Added assert to check for 16-bit index overflow 2018-05-14 15:26:05 +02:00
Micha Mettke f228e73f37
Merge pull request #685 from wheybags/scrollbar_fix
fix scrollbar crash
2018-05-11 11:18:57 +02:00