diff --git a/src/platform/linux/uhid_backend.cpp b/src/platform/linux/uhid_backend.cpp index 653145c..00906ba 100644 --- a/src/platform/linux/uhid_backend.cpp +++ b/src/platform/linux/uhid_backend.cpp @@ -1079,7 +1079,7 @@ namespace lvh::detail { return status; } - std::vector buttons {BTN_TOUCH, BTN_STYLUS, BTN_STYLUS2, BTN_TOOL_PEN, BTN_TOOL_RUBBER, BTN_TOOL_BRUSH, BTN_TOOL_PENCIL, BTN_TOOL_AIRBRUSH}; + std::vector buttons {BTN_TOUCH, BTN_STYLUS, BTN_STYLUS2, BTN_TOOL_PEN, BTN_TOOL_RUBBER, BTN_TOOL_BRUSH, BTN_TOOL_PENCIL, BTN_TOOL_AIRBRUSH}; #if defined(BTN_STYLUS3) buttons.push_back(BTN_STYLUS3); #endif diff --git a/src/shared/playstation_feature_reports.hpp b/src/shared/playstation_feature_reports.hpp index 0b015a8..70afbfd 100644 --- a/src/shared/playstation_feature_reports.hpp +++ b/src/shared/playstation_feature_reports.hpp @@ -5,6 +5,7 @@ #pragma once // standard includes +#include #include namespace lvh::detail::playstation_feature_reports { @@ -18,7 +19,7 @@ namespace lvh::detail::playstation_feature_reports { inline constexpr std::uint8_t dualsense_pairing_report = 0x09; inline constexpr std::uint8_t dualsense_firmware_report = 0x20; - inline constexpr std::uint8_t dualshock4_usb_calibration_info[] { + inline constexpr std::array dualshock4_usb_calibration_info { 0x02, 0x00, 0x00, @@ -58,7 +59,7 @@ namespace lvh::detail::playstation_feature_reports { 0x00, }; - inline constexpr std::uint8_t dualshock4_bluetooth_calibration_info[] { + inline constexpr std::array dualshock4_bluetooth_calibration_info { 0x05, 0x00, 0x00, @@ -102,7 +103,7 @@ namespace lvh::detail::playstation_feature_reports { 0x00, }; - inline constexpr std::uint8_t dualshock4_firmware_info[] { + inline constexpr std::array dualshock4_firmware_info { 0xA3, 0x41, 0x75, @@ -154,7 +155,7 @@ namespace lvh::detail::playstation_feature_reports { 0x00, }; - inline constexpr std::uint8_t dualshock4_pairing_info[] { + inline constexpr std::array dualshock4_pairing_info { 0x12, 0x00, 0x00, @@ -173,7 +174,7 @@ namespace lvh::detail::playstation_feature_reports { 0x00, }; - inline constexpr std::uint8_t dualsense_calibration_info[] { + inline constexpr std::array dualsense_calibration_info { 0x05, 0x00, 0x00, @@ -217,7 +218,7 @@ namespace lvh::detail::playstation_feature_reports { 0x00, }; - inline constexpr std::uint8_t dualsense_firmware_info[] { + inline constexpr std::array dualsense_firmware_info { 0x20, 0x4A, 0x75, @@ -284,7 +285,7 @@ namespace lvh::detail::playstation_feature_reports { 0x00, }; - inline constexpr std::uint8_t dualsense_pairing_info[] { + inline constexpr std::array dualsense_pairing_info { 0x09, 0x74, 0xE7,