Fix nk_input_key to enable keyboard key repeat

This commit is contained in:
Vinh Truong 2016-07-10 01:41:43 +03:00 committed by Yaroslav Tsarko
parent 362afc071a
commit b8e533aeb8

View File

@ -10000,7 +10000,6 @@ nk_input_key(struct nk_context *ctx, enum nk_keys key, int down)
NK_ASSERT(ctx); NK_ASSERT(ctx);
if (!ctx) return; if (!ctx) return;
in = &ctx->input; in = &ctx->input;
if (in->keyboard.keys[key].down == down) return;
in->keyboard.keys[key].down = down; in->keyboard.keys[key].down = down;
in->keyboard.keys[key].clicked++; in->keyboard.keys[key].clicked++;
} }