修正嵌套调用bug

This commit is contained in:
hyzboy 2019-05-21 20:32:23 +08:00
parent 220a6798d2
commit 0171feb4df

View File

@ -55,15 +55,11 @@ namespace hgl
if(key_push[kb])
OnKeyPress(kb);
else
{
OnKeyDown(kb);
key_push[kb]=true;
}
}
void Window::OnKeyUp(KeyboardButton kb)
{
OnKeyUp(kb);
key_push[kb]=false;
}