Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
performance: fix unmapped key handling
  • Loading branch information
Sebastien Bourdeauducq committed Nov 29, 2011
1 parent f040ca7 commit c0a7199
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/performance.c
Expand Up @@ -427,13 +427,15 @@ static void event_callback(mtk_event *e, int count)
index = keycode_to_index(e[i].press.code);
if(index != -1) {
index = keyboard_patches[index];
renderer_add_patch(patches[index].p);
if(index != -1)
renderer_add_patch(patches[index].p);
}
} else if(e[i].type == EVENT_TYPE_RELEASE) {
index = keycode_to_index(e[i].release.code);
if(index != -1) {
index = keyboard_patches[index];
renderer_del_patch(patches[index].p);
if(index != -1)
renderer_del_patch(patches[index].p);
}
} else if(e[i].type == EVENT_TYPE_IR) {
index = e[i].press.code;
Expand Down

0 comments on commit c0a7199

Please sign in to comment.