mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 18:12:48 +00:00
apply clang-format
Signed-off-by: arades79 <scravers@protonmail.com>
This commit is contained in:
parent
392a029ef4
commit
26e44a3be4
|
@ -492,7 +492,8 @@ struct KernelCore::Impl {
|
||||||
constexpr static size_t CodeRegionAlign = PageSize;
|
constexpr static size_t CodeRegionAlign = PageSize;
|
||||||
constexpr static VAddr code_region_start =
|
constexpr static VAddr code_region_start =
|
||||||
Common::AlignDown(code_start_virt_addr, CodeRegionAlign);
|
Common::AlignDown(code_start_virt_addr, CodeRegionAlign);
|
||||||
constexpr static VAddr code_region_end = Common::AlignUp(code_end_virt_addr, CodeRegionAlign);
|
constexpr static VAddr code_region_end =
|
||||||
|
Common::AlignUp(code_end_virt_addr, CodeRegionAlign);
|
||||||
constexpr static size_t code_region_size = code_region_end - code_region_start;
|
constexpr static size_t code_region_size = code_region_end - code_region_start;
|
||||||
ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
|
ASSERT(memory_layout->GetVirtualMemoryRegionTree().Insert(
|
||||||
code_region_start, code_region_size, KMemoryRegionType_KernelCode));
|
code_region_start, code_region_size, KMemoryRegionType_KernelCode));
|
||||||
|
|
|
@ -439,9 +439,9 @@ void Controller_NPad::RequestPadStateUpdate(Core::HID::NpadIdType npad_id) {
|
||||||
using btn = Core::HID::NpadButton;
|
using btn = Core::HID::NpadButton;
|
||||||
pad_entry.npad_buttons.raw = btn::None;
|
pad_entry.npad_buttons.raw = btn::None;
|
||||||
if (controller_type != Core::HID::NpadStyleIndex::JoyconLeft) {
|
if (controller_type != Core::HID::NpadStyleIndex::JoyconLeft) {
|
||||||
constexpr static btn right_button_mask = btn::A | btn::B | btn::X | btn::Y | btn::StickR | btn::R |
|
constexpr static btn right_button_mask = btn::A | btn::B | btn::X | btn::Y | btn::StickR |
|
||||||
btn::ZR | btn::Plus | btn::StickRLeft | btn::StickRUp |
|
btn::R | btn::ZR | btn::Plus | btn::StickRLeft |
|
||||||
btn::StickRRight | btn::StickRDown;
|
btn::StickRUp | btn::StickRRight | btn::StickRDown;
|
||||||
pad_entry.npad_buttons.raw = button_state.raw & right_button_mask;
|
pad_entry.npad_buttons.raw = button_state.raw & right_button_mask;
|
||||||
pad_entry.r_stick = stick_state.right;
|
pad_entry.r_stick = stick_state.right;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue