System/SystemEvent: Merge with Input/InputEvent into just Event.
This commit is contained in:
parent
858e721451
commit
10198484e7
12 changed files with 152 additions and 80 deletions
|
|
@ -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 :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue