summaryrefslogtreecommitdiffstats
path: root/src/core/hid
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-05-22 00:21:45 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2022-05-27 17:22:37 +0200
commita1f2610522dd7d66f370dacc821f2b30029a218e (patch)
tree42684db4bc71578b13d8f301816e231e8c058391 /src/core/hid
parentservice: hid: Implement LoadSixAxisSensorCalibrationParameter and GetSixAxisSensorIcInformation (diff)
downloadyuzu-a1f2610522dd7d66f370dacc821f2b30029a218e.tar
yuzu-a1f2610522dd7d66f370dacc821f2b30029a218e.tar.gz
yuzu-a1f2610522dd7d66f370dacc821f2b30029a218e.tar.bz2
yuzu-a1f2610522dd7d66f370dacc821f2b30029a218e.tar.lz
yuzu-a1f2610522dd7d66f370dacc821f2b30029a218e.tar.xz
yuzu-a1f2610522dd7d66f370dacc821f2b30029a218e.tar.zst
yuzu-a1f2610522dd7d66f370dacc821f2b30029a218e.zip
Diffstat (limited to 'src/core/hid')
-rw-r--r--src/core/hid/hid_types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hid/hid_types.h b/src/core/hid/hid_types.h
index 00ba23535..9f76f9bcb 100644
--- a/src/core/hid/hid_types.h
+++ b/src/core/hid/hid_types.h
@@ -498,6 +498,16 @@ struct SixAxisSensorFusionParameters {
static_assert(sizeof(SixAxisSensorFusionParameters) == 8,
"SixAxisSensorFusionParameters is an invalid size");
+// This is nn::hid::server::SixAxisSensorProperties
+struct SixAxisSensorProperties {
+ union {
+ u8 raw{};
+ BitField<0, 1, u8> is_newly_assigned;
+ BitField<1, 1, u8> is_firmware_update_available;
+ };
+};
+static_assert(sizeof(SixAxisSensorProperties) == 1, "SixAxisSensorProperties is an invalid size");
+
// This is nn::hid::SixAxisSensorCalibrationParameter
struct SixAxisSensorCalibrationParameter {
std::array<u8, 0x744> unknown_data{};