mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-03-15 01:16:39 +00:00
18 lines
312 B
C++
18 lines
312 B
C++
#pragma once
|
|
|
|
#include "EventArgs.h"
|
|
#include "Register.h"
|
|
|
|
namespace EightBit {
|
|
class PortEventArgs final : public EventArgs {
|
|
private:
|
|
register16_t _port;
|
|
|
|
public:
|
|
PortEventArgs(register16_t port) noexcept
|
|
: _port(port) {}
|
|
|
|
[[nodiscard]] constexpr auto port() const noexcept { return _port; }
|
|
};
|
|
}
|