Browse Source

Fix nk_input_key to enable keyboard key repeat

Vinh Truong 9 years ago
parent
commit
3b50eedba4
1 changed files with 0 additions and 1 deletions
  1. 0 1
      nuklear.h

+ 0 - 1
nuklear.h

@@ -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++;
 }
 }