Fixed key repeat #416 in nk_input_key

This commit is contained in:
vurtun 2017-04-20 18:14:24 +02:00
parent 4c39852182
commit 8559aebaed
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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