1
0
Fork 0

System/SystemEvent: Merge with Input/InputEvent into just Event.

This commit is contained in:
Henrik Hautakoski 2020-01-30 22:40:09 +01:00
parent 858e721451
commit 10198484e7
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
12 changed files with 152 additions and 80 deletions

View file

@ -6,7 +6,7 @@
namespace sp {
bool Win32EventQueue::poll(SysEvent& event)
bool Win32EventQueue::poll(Event& event)
{
MSG msg;
@ -19,11 +19,11 @@ bool Win32EventQueue::poll(SysEvent& event)
return false;
}
LRESULT Win32EventQueue::processMessage(MSG msg, SysEvent& event)
LRESULT Win32EventQueue::processMessage(MSG msg, Event& event)
{
switch(msg.message) {
case WM_QUIT :
event.type = SysEvent::Quit;
event.type = Event::Quit;
return 0;
// Input, Forward to devices.
case WM_KEYDOWN :