2022-04-23 10:59:50 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-07-01 07:12:57 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/result.h"
|
|
|
|
|
|
|
|
namespace Service::HID {
|
|
|
|
|
2022-01-19 03:08:56 +01:00
|
|
|
constexpr Result PalmaResultSuccess{ErrorModule::HID, 0};
|
2024-01-16 19:17:18 +01:00
|
|
|
|
|
|
|
constexpr Result ResultTouchNotInitialized{ErrorModule::HID, 41};
|
|
|
|
constexpr Result ResultTouchOverflow{ErrorModule::HID, 42};
|
|
|
|
|
2022-06-26 05:44:19 +02:00
|
|
|
constexpr Result NpadInvalidHandle{ErrorModule::HID, 100};
|
|
|
|
constexpr Result NpadDeviceIndexOutOfRange{ErrorModule::HID, 107};
|
2024-01-01 22:23:56 +01:00
|
|
|
|
|
|
|
constexpr Result ResultVibrationNotInitialized{ErrorModule::HID, 121};
|
|
|
|
constexpr Result ResultVibrationInvalidStyleIndex{ErrorModule::HID, 122};
|
|
|
|
constexpr Result ResultVibrationInvalidNpadId{ErrorModule::HID, 123};
|
|
|
|
constexpr Result ResultVibrationDeviceIndexOutOfRange{ErrorModule::HID, 124};
|
2024-01-16 00:26:53 +01:00
|
|
|
constexpr Result ResultVibrationStrengthOutOfRange{ErrorModule::HID, 126};
|
2024-01-01 22:23:56 +01:00
|
|
|
constexpr Result ResultVibrationArraySizeMismatch{ErrorModule::HID, 131};
|
|
|
|
|
2022-06-26 05:44:19 +02:00
|
|
|
constexpr Result InvalidSixAxisFusionRange{ErrorModule::HID, 423};
|
2024-01-01 22:23:56 +01:00
|
|
|
|
|
|
|
constexpr Result ResultNfcIsNotReady{ErrorModule::HID, 461};
|
|
|
|
constexpr Result ResultNfcXcdHandleIsNotInitialized{ErrorModule::HID, 464};
|
|
|
|
constexpr Result ResultIrSensorIsNotReady{ErrorModule::HID, 501};
|
2024-01-16 19:17:18 +01:00
|
|
|
|
|
|
|
constexpr Result ResultGestureOverflow{ErrorModule::HID, 522};
|
|
|
|
constexpr Result ResultGestureNotInitialized{ErrorModule::HID, 523};
|
|
|
|
|
2024-01-01 22:23:56 +01:00
|
|
|
constexpr Result ResultMcuIsNotReady{ErrorModule::HID, 541};
|
|
|
|
|
2022-06-26 05:44:19 +02:00
|
|
|
constexpr Result NpadIsDualJoycon{ErrorModule::HID, 601};
|
|
|
|
constexpr Result NpadIsSameType{ErrorModule::HID, 602};
|
2024-01-01 22:23:56 +01:00
|
|
|
constexpr Result ResultNpadIsNotProController{ErrorModule::HID, 604};
|
|
|
|
|
|
|
|
constexpr Result ResultInvalidNpadId{ErrorModule::HID, 709};
|
|
|
|
constexpr Result ResultNpadNotConnected{ErrorModule::HID, 710};
|
|
|
|
constexpr Result ResultNpadHandlerOverflow{ErrorModule::HID, 711};
|
|
|
|
constexpr Result ResultNpadHandlerNotInitialized{ErrorModule::HID, 712};
|
|
|
|
constexpr Result ResultInvalidArraySize{ErrorModule::HID, 715};
|
|
|
|
constexpr Result ResultUndefinedStyleset{ErrorModule::HID, 716};
|
|
|
|
constexpr Result ResultMultipleStyleSetSelected{ErrorModule::HID, 717};
|
2023-12-06 01:39:18 +01:00
|
|
|
|
2023-12-10 21:53:19 +01:00
|
|
|
constexpr Result ResultAppletResourceOverflow{ErrorModule::HID, 1041};
|
|
|
|
constexpr Result ResultAppletResourceNotInitialized{ErrorModule::HID, 1042};
|
|
|
|
constexpr Result ResultSharedMemoryNotInitialized{ErrorModule::HID, 1043};
|
2023-12-06 01:39:18 +01:00
|
|
|
constexpr Result ResultAruidNoAvailableEntries{ErrorModule::HID, 1044};
|
|
|
|
constexpr Result ResultAruidAlreadyRegistered{ErrorModule::HID, 1046};
|
|
|
|
constexpr Result ResultAruidNotRegistered{ErrorModule::HID, 1047};
|
|
|
|
|
2024-01-01 22:23:56 +01:00
|
|
|
constexpr Result ResultNpadResourceOverflow{ErrorModule::HID, 2001};
|
|
|
|
constexpr Result ResultNpadResourceNotInitialized{ErrorModule::HID, 2002};
|
|
|
|
|
2022-01-19 03:08:56 +01:00
|
|
|
constexpr Result InvalidPalmaHandle{ErrorModule::HID, 3302};
|
2019-07-01 07:12:57 +02:00
|
|
|
|
2022-06-19 23:27:48 +02:00
|
|
|
} // namespace Service::HID
|
|
|
|
|
|
|
|
namespace Service::IRS {
|
|
|
|
|
2022-06-29 02:35:51 +02:00
|
|
|
constexpr Result InvalidProcessorState{ErrorModule::Irsensor, 78};
|
|
|
|
constexpr Result InvalidIrCameraHandle{ErrorModule::Irsensor, 204};
|
2022-06-19 06:45:06 +02:00
|
|
|
|
2022-06-19 23:27:48 +02:00
|
|
|
} // namespace Service::IRS
|