diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-01-30 16:43:06 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-01-31 00:02:26 +0100 |
| commit | 307e07d6513f9524b7fcab5134494bd175465cd1 (patch) | |
| tree | ce025db2ea998bdcd8980a0ed443083f0daf8d35 /lib/nes/app/input/input-device-keyboard.hh | |
| parent | 5959349f341a2380c0c3f41ec40a1e8e0d969d00 (diff) | |
handle input devices in the c++ application
Diffstat (limited to 'lib/nes/app/input/input-device-keyboard.hh')
| -rw-r--r-- | lib/nes/app/input/input-device-keyboard.hh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/nes/app/input/input-device-keyboard.hh b/lib/nes/app/input/input-device-keyboard.hh new file mode 100644 index 0000000..d61417d --- /dev/null +++ b/lib/nes/app/input/input-device-keyboard.hh @@ -0,0 +1,16 @@ +#pragma once + +#include "nes/app/input/input-device.hh" + +namespace nes +{ + /// A keyboard input device. + class input_device_keyboard : public input_device + { + public: + virtual auto read_key_escape() -> bool = 0; + + protected: + explicit input_device_keyboard() = default; + }; +} // namespace nes
\ No newline at end of file |
