use new Mouse/KeyboardButton event names.

This commit is contained in:
2020-10-27 14:28:16 +08:00
parent 3d644e9550
commit 72b54414ac
3 changed files with 42 additions and 42 deletions

View File

@@ -2,21 +2,21 @@
namespace hgl
{
void Window::ProcKeyDown(KeyboardButton kb)
void Window::ProcKeyPressed(KeyboardButton kb)
{
if(key_push[kb])
ProcKeyPress(kb);
ProcKeyRepeat(kb);
else
key_push[kb]=true;
SafeCallEvent(OnKeyDown,(kb));
SafeCallEvent(OnKeyPressed,(kb));
}
void Window::ProcKeyUp(KeyboardButton kb)
void Window::ProcKeyReleased(KeyboardButton kb)
{
key_push[kb]=false;
SafeCallEvent(OnKeyUp,(kb));
SafeCallEvent(OnKeyReleased,(kb));
}
void Window::ProcResize(uint w,uint h)