mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-06 02:01:50 +08:00
reset olddownkey to zero when got a KEYUP event
This commit is contained in:
@@ -458,6 +458,7 @@ BOOL kernel_GetLWEvent (int event, PLWEVENT lwe)
|
||||
#endif
|
||||
ke->event = KE_KEYUP;
|
||||
ke->scancode = i;
|
||||
olddownkey = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -762,6 +763,7 @@ BOOL kernel_GetLWEvent (int event, PLWEVENT lwe)
|
||||
if(oldkeystate[i] && !keystate[i]) {
|
||||
ke->event = KE_KEYUP;
|
||||
ke->scancode = i;
|
||||
olddownkey = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user