1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright 2015 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "common/archives.h"
#include "core/hle/service/hid/hid_spvr.h"
SERIALIZE_EXPORT_IMPL(Service::HID::Spvr)
namespace Service::HID {
Spvr::Spvr(std::shared_ptr<Module> hid) : Module::Interface(std::move(hid), "hid:SPVR", 6) {
static const FunctionInfo functions[] = {
// clang-format off
{0x0001, nullptr, "CalibrateTouchScreen"},
{0x0002, nullptr, "UpdateTouchConfig"},
{0x000A, &Spvr::GetIPCHandles, "GetIPCHandles"},
{0x000B, nullptr, "StartAnalogStickCalibration"},
{0x000E, nullptr, "GetAnalogStickCalibrateParam"},
{0x0011, &Spvr::EnableAccelerometer, "EnableAccelerometer"},
{0x0012, &Spvr::DisableAccelerometer, "DisableAccelerometer"},
{0x0013, &Spvr::EnableGyroscopeLow, "EnableGyroscopeLow"},
{0x0014, &Spvr::DisableGyroscopeLow, "DisableGyroscopeLow"},
{0x0015, &Spvr::GetGyroscopeLowRawToDpsCoefficient, "GetGyroscopeLowRawToDpsCoefficient"},
{0x0016, &Spvr::GetGyroscopeLowCalibrateParam, "GetGyroscopeLowCalibrateParam"},
{0x0017, &Spvr::GetSoundVolume, "GetSoundVolume"},
// clang-format on
};
RegisterHandlers(functions);
}
} // namespace Service::HID
|