src/Platform/Window.cpp
This commit is contained in:
parent
67eac6173a
commit
8d4802fca6
20
src/Platform/Window.cpp
Normal file
20
src/Platform/Window.cpp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#include<hgl/platform/Window.h>
|
||||||
|
namespace hgl
|
||||||
|
{
|
||||||
|
void Window::OnKeyDown(KeyboardButton kb)
|
||||||
|
{
|
||||||
|
if(key_push[kb])
|
||||||
|
OnKeyPress(kb);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
OnKeyDown(kb);
|
||||||
|
key_push[kb]=true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Window::OnKeyUp(KeyboardButton kb)
|
||||||
|
{
|
||||||
|
OnKeyUp(kb);
|
||||||
|
key_push[kb]=false;
|
||||||
|
}
|
||||||
|
}//namespace hgl
|
Loading…
x
Reference in New Issue
Block a user