1
0
Fork 0
spectre/source/Platform/Win32/Win32Keyboard.h

28 lines
514 B
C++

#ifndef PLATFORM_WIN32_KEYBOARD_H
#define PLATFORM_WIN32_KEYBOARD_H
#include <windows.h>
#include <Spectre/System/Event.h>
#include <Spectre/Input/Keyboard.h>
namespace sp {
class Win32Keyboard : public Keyboard
{
public :
void init();
bool isKeyDown(Keyboard::Key key);
// Translate a Win32 Event to sp::Event, Called from Win32EventQueue
static bool handleMessage(MSG message, Event& event);
protected :
void update(InputModule *input);
};
} // namespace sp
#endif /* PLATFORM_WIN32_KEYBOARD_H */