diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 18:24:59 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 18:24:59 +0100 |
| commit | d060e3a50c987d10799ccc739bdbf9d7d7a13c10 (patch) | |
| tree | 4b5585383ada85608b57bcf76e5828817962fddf /lib/nes/app/input/input-device.hh | |
| parent | dbed1c0fa5599b1b96c221b89b10f1e350351645 (diff) | |
implement settings
Diffstat (limited to 'lib/nes/app/input/input-device.hh')
| -rw-r--r-- | lib/nes/app/input/input-device.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/nes/app/input/input-device.hh b/lib/nes/app/input/input-device.hh index cc03057..008825d 100644 --- a/lib/nes/app/input/input-device.hh +++ b/lib/nes/app/input/input-device.hh @@ -1,6 +1,7 @@ #pragma once #include "nes/sys/types/button-mask.hh" +#include <string_view> namespace nes::app { @@ -15,8 +16,12 @@ namespace nes::app auto operator=(input_device const&) -> input_device& = delete; auto operator=(input_device&&) -> input_device& = delete; + /// Read the controller button state. virtual auto read_buttons() -> sys::button_mask = 0; + /// Human-readable name for the device. + virtual auto get_name() const -> std::string_view = 0; + protected: explicit input_device() = default; }; |
