Adding Win32EventQueue
This commit is contained in:
parent
3477b72371
commit
da76c4b4d1
2 changed files with 101 additions and 0 deletions
22
source/Platform/Win32/Win32EventQueue.h
Normal file
22
source/Platform/Win32/Win32EventQueue.h
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue