diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-04 15:50:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-04 15:50:33 -0500 |
| commit | 0e93cad4f09919bdcb01b78234972bbff7718e5d (patch) | |
| tree | aba09a6d8801b28dbfb6c7f5f35b4a666db6d931 /src/core/hle/service/hid/hid_util.h | |
| parent | 148ad0cf0b08a0c41db6450f38ccb6ecf95b938a (diff) | |
| parent | 55623222908d2fd979de9ab101b1deff33a622f8 (diff) | |
Merge pull request #12549 from german77/npadresource
service: hid: Implement NpadResource and NpadData
Diffstat (limited to 'src/core/hle/service/hid/hid_util.h')
| -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; |
