Initial commit
This commit is contained in:
commit
edfc5298e1
252 changed files with 93965 additions and 0 deletions
32
source/Platform/Win32/Win32Input.h
Normal file
32
source/Platform/Win32/Win32Input.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
|
||||
#ifndef PLATFORM_WIN32_INPUT_H
|
||||
#define PLATFORM_WIN32_INPUT_H
|
||||
|
||||
#include <Windows.h>
|
||||
#include <Platform/PlatformInput.h>
|
||||
|
||||
#define WIN32_INPUT_BUFFER_QUEUE_MAX_SIZE 64
|
||||
|
||||
struct Win32InputMsgBuffer {
|
||||
int index;
|
||||
MSG messages[WIN32_INPUT_BUFFER_QUEUE_MAX_SIZE];
|
||||
bool enabled;
|
||||
|
||||
Win32InputMsgBuffer();
|
||||
|
||||
bool postMessage(MSG msg);
|
||||
};
|
||||
|
||||
class Win32Input : public PlatformInput
|
||||
{
|
||||
public :
|
||||
virtual Keyboard* createKeyboard();
|
||||
|
||||
virtual Mouse* createMouse();
|
||||
|
||||
virtual void update();
|
||||
|
||||
static Win32InputMsgBuffer inputMsgBuffer;
|
||||
};
|
||||
|
||||
#endif /* PLATFORM_WIN32_INPUT_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue