diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-29 15:08:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 15:08:52 +0100 |
commit | adfdc9520a616ebc640188968ba21061e2e8df50 (patch) | |
tree | fe299ed6cbe0f84b4811cf093d826b5161152b94 /src/hid_core/resources/system_buttons/system_button_types.h | |
parent | Merge pull request #12814 from Kelebek1/time_new_ipc (diff) | |
parent | service: hid: Implement home, capture and sleep buttons (diff) | |
download | yuzu-adfdc9520a616ebc640188968ba21061e2e8df50.tar yuzu-adfdc9520a616ebc640188968ba21061e2e8df50.tar.gz yuzu-adfdc9520a616ebc640188968ba21061e2e8df50.tar.bz2 yuzu-adfdc9520a616ebc640188968ba21061e2e8df50.tar.lz yuzu-adfdc9520a616ebc640188968ba21061e2e8df50.tar.xz yuzu-adfdc9520a616ebc640188968ba21061e2e8df50.tar.zst yuzu-adfdc9520a616ebc640188968ba21061e2e8df50.zip |
Diffstat (limited to 'src/hid_core/resources/system_buttons/system_button_types.h')
-rw-r--r-- | src/hid_core/resources/system_buttons/system_button_types.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/hid_core/resources/system_buttons/system_button_types.h b/src/hid_core/resources/system_buttons/system_button_types.h new file mode 100644 index 000000000..929e1dc4c --- /dev/null +++ b/src/hid_core/resources/system_buttons/system_button_types.h @@ -0,0 +1,31 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +#include "hid_core/hid_types.h" + +namespace Service::HID { + +// This is nn::hid::system::SleepButtonState +struct SleepButtonState { + s64 sampling_number{}; + Core::HID::SleepButtonState buttons; +}; +static_assert(sizeof(SleepButtonState) == 0x10, "SleepButtonState is an invalid size"); + +// This is nn::hid::system::HomeButtonState +struct HomeButtonState { + s64 sampling_number{}; + Core::HID::HomeButtonState buttons; +}; +static_assert(sizeof(HomeButtonState) == 0x10, "HomeButtonState is an invalid size"); + +// This is nn::hid::system::SleepButtonState +struct CaptureButtonState { + s64 sampling_number{}; + Core::HID::CaptureButtonState buttons; +}; +static_assert(sizeof(CaptureButtonState) == 0x10, "CaptureButtonState is an invalid size"); + +} // namespace Service::HID |