mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-14 09:28:59 +00:00
ctk-curses: Remove extra mouse events pumping loop
It was added to avoid getting garbage keyboard input in some cases, however it seems not to happen very often and might be the cause of hang in OSX. If garbage input happens again we can always try to pump a single event each time instead of looping anyway.
This commit is contained in:
parent
343a7643b7
commit
86cb1769f6
@ -360,10 +360,6 @@ console_readkey(int k)
|
|||||||
/*fprintf(stderr, "mevent: %d: %d, %d, %d, %lx ; %d\n",
|
/*fprintf(stderr, "mevent: %d: %d, %d, %d, %lx ; %d\n",
|
||||||
event.id, event.x, event.y, event.z, event.bstate, button); */
|
event.id, event.x, event.y, event.z, event.bstate, button); */
|
||||||
}
|
}
|
||||||
/* just in case */
|
|
||||||
while(getmouse(&event) == OK) {
|
|
||||||
/*fprintf(stderr, "pumped mevent\n"); */
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case KEY_LEFT:
|
case KEY_LEFT:
|
||||||
|
Loading…
Reference in New Issue
Block a user