From 4fe67b36e3bbe6ea5505ed7233c245be9374f0ce Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Sun, 2 Feb 2025 20:59:36 +0100 Subject: refactor selection --- lib/nes/app/input/input-buffer.hh | 1 + lib/nes/app/input/input-event.hh | 1 + 2 files changed, 2 insertions(+) (limited to 'lib/nes/app/input') diff --git a/lib/nes/app/input/input-buffer.hh b/lib/nes/app/input/input-buffer.hh index 68fca6b..319cfa9 100644 --- a/lib/nes/app/input/input-buffer.hh +++ b/lib/nes/app/input/input-buffer.hh @@ -7,6 +7,7 @@ namespace nes::app { class input_event; + /// A buffer which stores the "pressed" state for each key and a queue of key-down and key-up events. class input_buffer { struct event final : list::node diff --git a/lib/nes/app/input/input-event.hh b/lib/nes/app/input/input-event.hh index 90e67b0..26d6448 100644 --- a/lib/nes/app/input/input-event.hh +++ b/lib/nes/app/input/input-event.hh @@ -4,6 +4,7 @@ namespace nes::app { + /// A keyboard input event which can be polled. class input_event { public: -- cgit v1.3.1