padnull: Zero the whole event structure

It fixes an infinite loop when a key is pressed.
This commit is contained in:
Jonathan Li 2015-11-25 19:04:29 +00:00
parent 8a26a6e34c
commit 6a0f185335
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ EXPORT_C_(keyEvent*) PADkeyEvent()
s_event = event;
event.evt = 0;
event.key = 0;
return &s_event;
}