1
0
Fork 0

Platform/Win32/Win32Input.cpp: remove Win32InputMsgBuffer

This commit is contained in:
Henrik Hautakoski 2020-02-15 15:41:53 +01:00
parent eef2690ada
commit 92a561648e
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
2 changed files with 1 additions and 23 deletions

View file

@ -6,14 +6,6 @@
namespace sp {
Win32InputMsgBuffer Win32Input::inputMsgBuffer;
Win32InputMsgBuffer::Win32InputMsgBuffer() :
index (0),
enabled (false)
{
}
Keyboard* Win32Input::createKeyboard()
{
return new Win32Keyboard();

View file

@ -7,18 +7,6 @@
namespace sp {
#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 :
@ -27,10 +15,8 @@ public :
virtual Mouse* createMouse();
virtual void update();
static Win32InputMsgBuffer inputMsgBuffer;
};
} // namespace sp
#endif /* PLATFORM_WIN32_INPUT_H */
#endif /* PLATFORM_WIN32_INPUT_H */