Fix nk_input_key to enable keyboard key repeat
This commit is contained in:
parent
362afc071a
commit
b8e533aeb8
@ -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++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user