From 9ca793417149cbaa7b5f4b7797bc929e6e191f28 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Sat, 1 Feb 2025 01:14:03 +0100 Subject: use custom integer types --- lib/nes/sys/controller.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/nes/sys/controller.hh') diff --git a/lib/nes/sys/controller.hh b/lib/nes/sys/controller.hh index d3a32fd..c330365 100644 --- a/lib/nes/sys/controller.hh +++ b/lib/nes/sys/controller.hh @@ -1,13 +1,14 @@ #pragma once #include "nes/sys/types/button-mask.hh" +#include "nes/common/types.hh" namespace nes::sys { class controller { button_mask pressed_; - unsigned index_{ 0 }; + u32 index_{ 0 }; bool strobing_{ false }; public: @@ -24,7 +25,7 @@ namespace nes::sys // IO register - auto read() -> std::uint8_t; - auto write(std::uint8_t) -> void; + auto read() -> u8; + auto write(u8) -> void; }; } // namespace nes::sys \ No newline at end of file -- cgit v1.3.1