Fixed key repeat #416 in nk_input_key
This commit is contained in:
parent
4c39852182
commit
8559aebaed
@ -11,6 +11,7 @@
|
||||
|
||||
Changes:
|
||||
--------
|
||||
- 2017/04/20 (1.37.1) - Fixed key repeat found inside glfw demo backends
|
||||
- 2017/04/20 (1.37.0) - Extended properties with selection and clipbard support
|
||||
- 2017/04/20 (1.36.2) - Fixed #405 overlapping rows with zero padding and spacing
|
||||
- 2017/04/09 (1.36.1) - Fixed #403 with another widget float error
|
||||
|
@ -12176,8 +12176,9 @@ nk_input_key(struct nk_context *ctx, enum nk_keys key, int down)
|
||||
NK_ASSERT(ctx);
|
||||
if (!ctx) return;
|
||||
in = &ctx->input;
|
||||
if (in->keyboard.keys[key].down != down)
|
||||
in->keyboard.keys[key].clicked++;
|
||||
in->keyboard.keys[key].down = down;
|
||||
in->keyboard.keys[key].clicked++;
|
||||
}
|
||||
|
||||
NK_API void
|
||||
|
Loading…
Reference in New Issue
Block a user