Initial commit
This commit is contained in:
commit
edfc5298e1
252 changed files with 93965 additions and 0 deletions
19
include/Spectre/Input/Keyboard.h
Normal file
19
include/Spectre/Input/Keyboard.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
#ifndef SPECTRE_INPUT_KEYBOARD_H
|
||||
#define SPECTRE_INPUT_KEYBOARD_H
|
||||
|
||||
#include <string>
|
||||
#include "InputEvent.h"
|
||||
#include "InputDevice.h"
|
||||
|
||||
class Keyboard : public InputDevice
|
||||
{
|
||||
public :
|
||||
virtual ~Keyboard() {};
|
||||
|
||||
virtual bool isKeyDown(Key::Type key) = 0;
|
||||
|
||||
static std::string getKeyName(Key::Type key);
|
||||
};
|
||||
|
||||
#endif /* SPECTRE_INPUT_KEYBOARD_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue