1
0
Fork 0

Adding Win32EventQueue

This commit is contained in:
Henrik Hautakoski 2020-01-24 15:35:07 +01:00
parent 3477b72371
commit da76c4b4d1
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
2 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#ifndef PLATFORM_WIN32_EVENT_QUEUE_H
#define PLATFORM_WIN32_EVENT_QUEUE_H
#include <windows.h>
#include <Spectre/System/SystemEvent.h>
#include <Platform/PlatformEventQueue.h>
namespace sp {
class Win32EventQueue : public PlatformEventQueue
{
public :
virtual bool poll(SysEvent& event);
private :
LRESULT processMessage(MSG msg, SysEvent& event);
};
} // namespace sp
#endif /* PLATFORM_WIN32_MESSAGE_QUEUE_H */