From 307e07d6513f9524b7fcab5134494bd175465cd1 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Thu, 30 Jan 2025 16:43:06 +0100 Subject: handle input devices in the c++ application --- lib/nes/app/input/input-device-keyboard.hh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/nes/app/input/input-device-keyboard.hh (limited to 'lib/nes/app/input/input-device-keyboard.hh') 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 -- cgit v1.3.1