diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-01 22:23:56 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-04 03:21:14 +0100 |
commit | 6a244465cef86d7329f12dd1dfd5d6fdd415a0ed (patch) | |
tree | 0b69faca9aee4ab31705d07d57e55a75b1b2a809 /src/core/hle/service/hid/hid_util.h | |
parent | Merge pull request #12554 from german77/directconnect (diff) | |
download | yuzu-6a244465cef86d7329f12dd1dfd5d6fdd415a0ed.tar yuzu-6a244465cef86d7329f12dd1dfd5d6fdd415a0ed.tar.gz yuzu-6a244465cef86d7329f12dd1dfd5d6fdd415a0ed.tar.bz2 yuzu-6a244465cef86d7329f12dd1dfd5d6fdd415a0ed.tar.lz yuzu-6a244465cef86d7329f12dd1dfd5d6fdd415a0ed.tar.xz yuzu-6a244465cef86d7329f12dd1dfd5d6fdd415a0ed.tar.zst yuzu-6a244465cef86d7329f12dd1dfd5d6fdd415a0ed.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/hid_util.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/hid_util.h b/src/core/hle/service/hid/hid_util.h index b87cc10e3..6a2ed287a 100644 --- a/src/core/hle/service/hid/hid_util.h +++ b/src/core/hle/service/hid/hid_util.h @@ -31,7 +31,7 @@ constexpr Result IsSixaxisHandleValid(const Core::HID::SixAxisSensorHandle& hand const bool device_index = handle.device_index < Core::HID::DeviceIndex::MaxDeviceIndex; if (!npad_id) { - return InvalidNpadId; + return ResultInvalidNpadId; } if (!device_index) { return NpadDeviceIndexOutOfRange; @@ -54,15 +54,15 @@ constexpr Result IsVibrationHandleValid(const Core::HID::VibrationDeviceHandle& // These support vibration break; default: - return VibrationInvalidStyleIndex; + return ResultVibrationInvalidStyleIndex; } if (!IsNpadIdValid(static_cast<Core::HID::NpadIdType>(handle.npad_id))) { - return VibrationInvalidNpadId; + return ResultVibrationInvalidNpadId; } if (handle.device_index >= Core::HID::DeviceIndex::MaxDeviceIndex) { - return VibrationDeviceIndexOutOfRange; + return ResultVibrationDeviceIndexOutOfRange; } return ResultSuccess; |