From 212a3acd43fc8d5a297855b69b69471b5f98dc44 Mon Sep 17 00:00:00 2001 From: Katharine Chui Date: Thu, 15 May 2025 21:29:36 +0200 Subject: [PATCH] static const -> constexpr --- rpcs3/Emu/Io/LogitechG27.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rpcs3/Emu/Io/LogitechG27.cpp b/rpcs3/Emu/Io/LogitechG27.cpp index b14005edd1..38b9718794 100644 --- a/rpcs3/Emu/Io/LogitechG27.cpp +++ b/rpcs3/Emu/Io/LogitechG27.cpp @@ -763,12 +763,12 @@ void usb_device_logitech_g27::interrupt_transfer(u32 buf_size, u8* buf, u32 endp // rough analog values recorded in https://github.com/RPCS3/rpcs3/pull/17199#issuecomment-2883934412 // buf[8] shifter x // buf[9] shifter y - static const u8 shifter_coord_center = 0x80; - static const u8 shifter_coord_top = 0xb7; - static const u8 shifter_coord_bottom = 0x32; - static const u8 shifter_coord_left = 0x30; - static const u8 shifter_coord_right = 0xb3; - static const u8 shifter_coord_right_reverse = 0xaa; + constexpr u8 shifter_coord_center = 0x80; + constexpr u8 shifter_coord_top = 0xb7; + constexpr u8 shifter_coord_bottom = 0x32; + constexpr u8 shifter_coord_left = 0x30; + constexpr u8 shifter_coord_right = 0xb3; + constexpr u8 shifter_coord_right_reverse = 0xaa; if (shifter_1) { buf[8] = shifter_coord_left;