From de372531ab9b7f78f26392a264ce9835d9a6b60c Mon Sep 17 00:00:00 2001 From: Mats Date: Wed, 14 Oct 2026 18:00:12 +0200 Subject: [PATCH] Update steamworks to v1.65 --- .gitignore | 1 + .gitlab-ci.yml | 2 +- Cargo.lock | 156 +++------ Cargo.toml | 1 + include/mist.h | 637 ++++++++++++++++++++++++++++++----- mist/src/callbacks.rs | 2 +- mist/src/main.rs | 10 +- mist/src/subprocess.rs | 8 +- mist/src/subprocess/utils.rs | 3 +- mist/src/types.rs | 571 ++++++++++++++++++++++++++++--- steamworks-sys/Cargo.toml | 2 +- steamworks-sys/build.rs | 11 +- 12 files changed, 1154 insertions(+), 250 deletions(-) diff --git a/.gitignore b/.gitignore index c11bdf9..5661ccf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /target /.vscode +.direnv .envrc shell.nix diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7be48ba..f5d794d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,7 @@ image: $CI_SERVER_HOST:5050/libretro-steam/rust-build-image:cross needs: - project: libretro-steam/steamworks job: package - ref: v1.53a + ref: v1.65 artifacts: true script: &build_common_script - echo building for $RUST_TARGET diff --git a/Cargo.lock b/Cargo.lock index 7051c34..694f404 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,15 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 - -[[package]] -name = "aho-corasick" -version = "0.7.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" -dependencies = [ - "memchr", -] +version = 4 [[package]] name = "ansi_term" @@ -54,25 +45,21 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.59.2" +version = "0.73.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bd2a9a458e8f4304c52c43ebb0cfbd520289f8379a52e329a38afda99bf8eb8" +checksum = "787ef8ef523575546b106a58213d6e6b06198a05c2f757258c68a74273670cfa" dependencies = [ - "bitflags", + "bitflags 2.13.2", "cexpr", "clang-sys", - "clap", - "env_logger", - "lazy_static", - "lazycell", "log", - "peeking_take_while", + "prettyplease", "proc-macro2", "quote", "regex", "rustc-hash", "shlex", - "which", + "syn 2.0.119", ] [[package]] @@ -81,6 +68,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" + [[package]] name = "cbindgen" version = "0.20.0" @@ -95,7 +88,7 @@ dependencies = [ "quote", "serde", "serde_json", - "syn", + "syn 1.0.90", "tempfile", "toml", ] @@ -140,7 +133,7 @@ checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" dependencies = [ "ansi_term", "atty", - "bitflags", + "bitflags 1.3.2", "strsim", "textwrap", "unicode-width", @@ -167,25 +160,6 @@ dependencies = [ "lazy_static", ] -[[package]] -name = "either" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" - -[[package]] -name = "env_logger" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" -dependencies = [ - "atty", - "humantime", - "log", - "regex", - "termcolor", -] - [[package]] name = "fastrand" version = "1.7.0" @@ -244,12 +218,6 @@ dependencies = [ "libc", ] -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - [[package]] name = "indexmap" version = "1.8.1" @@ -281,12 +249,6 @@ version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" -[[package]] -name = "lazycell" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" - [[package]] name = "libc" version = "0.2.121" @@ -365,7 +327,7 @@ version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f866317acbd3a240710c63f065ffb1e4fd466259045ccb504130b7f668f35c6" dependencies = [ - "bitflags", + "bitflags 1.3.2", "cc", "cfg-if", "libc", @@ -411,12 +373,6 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c520e05135d6e763148b6426a837e239041653ba7becd2e538c076c738025fc" -[[package]] -name = "peeking_take_while" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" - [[package]] name = "ppv-lite86" version = "0.2.16" @@ -424,19 +380,29 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] -name = "proc-macro2" -version = "1.0.36" +name = "prettyplease" +version = "0.2.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" dependencies = [ - "unicode-xid", + "proc-macro2", + "syn 2.0.119", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", ] [[package]] name = "quote" -version = "1.0.17" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "632d02bff7f874a36f33ea8bb416cd484b90cc66c1194b1a1110d067a7013f58" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" dependencies = [ "proc-macro2", ] @@ -477,7 +443,7 @@ version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42" dependencies = [ - "bitflags", + "bitflags 1.3.2", ] [[package]] @@ -486,8 +452,6 @@ version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286" dependencies = [ - "aho-corasick", - "memchr", "regex-syntax", ] @@ -508,9 +472,9 @@ dependencies = [ [[package]] name = "rustc-hash" -version = "1.1.0" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" [[package]] name = "ryu" @@ -541,7 +505,7 @@ checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.90", ] [[package]] @@ -570,9 +534,9 @@ dependencies = [ [[package]] name = "shlex" -version = "1.1.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" [[package]] name = "smallvec" @@ -604,6 +568,17 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "tempfile" version = "3.3.0" @@ -618,15 +593,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "termcolor" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" -dependencies = [ - "winapi-util", -] - [[package]] name = "textwrap" version = "0.11.0" @@ -645,6 +611,12 @@ dependencies = [ "serde", ] +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + [[package]] name = "unicode-segmentation" version = "1.9.0" @@ -675,17 +647,6 @@ version = "0.10.2+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" -[[package]] -name = "which" -version = "4.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c4fb54e6113b6a8772ee41c3404fb0301ac79604489467e0a9ce1f3e97c24ae" -dependencies = [ - "either", - "lazy_static", - "libc", -] - [[package]] name = "win-sys" version = "0.3.1" @@ -711,15 +672,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" -[[package]] -name = "winapi-util" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" -dependencies = [ - "winapi", -] - [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" diff --git a/Cargo.toml b/Cargo.toml index 45b30c9..bf69537 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [workspace] +resolver = "2" members = [ "mist", "steamworks-sys", diff --git a/include/mist.h b/include/mist.h index 41ad04a..4d27e39 100644 --- a/include/mist.h +++ b/include/mist.h @@ -27,12 +27,6 @@ #define MIST_MAX_GAMEPADS 16 -typedef enum MistControllerHapticLocation { - MistControllerHapticLocation_Left = 1, - MistControllerHapticLocation_Right = 2, - MistControllerHapticLocation_Both = (1 | 2), -} MistControllerHapticLocation; - typedef enum MistControllerSourceMode { MistControllerSourceMode_None = 0, MistControllerSourceMode_Dpad = 1, @@ -53,63 +47,50 @@ typedef enum MistControllerSourceMode { MistControllerSourceMode_Switches = 16, } MistControllerSourceMode; -typedef enum MistFloatingGamepadTextInputMode { - MistFloatingGamepadTextInputMode_SingleLine = 0, - MistFloatingGamepadTextInputMode_MultipleLines = 1, - MistFloatingGamepadTextInputMode_Email = 2, - MistFloatingGamepadTextInputMode_Numeric = 3, -} MistFloatingGamepadTextInputMode; - -typedef enum MistGamepadTextInputLineMode { - MistGamepadTextInputLineMode_SingleLine = 0, - MistGamepadTextInputLineMode_MultipleLines = 1, -} MistGamepadTextInputLineMode; - -typedef enum MistGamepadTextInputMode { - MistGamepadTextInputMode_Normal = 0, - MistGamepadTextInputMode_Password = 1, -} MistGamepadTextInputMode; - -enum MistInputActionOrigin { +enum MistInputActionOrigin +#if __STDC_VERSION__ >= 202311L + : uint32_t +#endif // __STDC_VERSION__ >= 202311L + { MistInputActionOrigin_None = 0, - MistInputActionOrigin_A = 1, - MistInputActionOrigin_B = 2, - MistInputActionOrigin_X = 3, - MistInputActionOrigin_Y = 4, - MistInputActionOrigin_LeftBumper = 5, - MistInputActionOrigin_RightBumper = 6, - MistInputActionOrigin_LeftGrip = 7, - MistInputActionOrigin_RightGrip = 8, - MistInputActionOrigin_Start = 9, - MistInputActionOrigin_Back = 10, - MistInputActionOrigin_LeftPad_Touch = 11, - MistInputActionOrigin_LeftPad_Swipe = 12, - MistInputActionOrigin_LeftPad_Click = 13, - MistInputActionOrigin_LeftPad_DPadNorth = 14, - MistInputActionOrigin_LeftPad_DPadSouth = 15, - MistInputActionOrigin_LeftPad_DPadWest = 16, - MistInputActionOrigin_LeftPad_DPadEast = 17, - MistInputActionOrigin_RightPad_Touch = 18, - MistInputActionOrigin_RightPad_Swipe = 19, - MistInputActionOrigin_RightPad_Click = 20, - MistInputActionOrigin_RightPad_DPadNorth = 21, - MistInputActionOrigin_RightPad_DPadSouth = 22, - MistInputActionOrigin_RightPad_DPadWest = 23, - MistInputActionOrigin_RightPad_DPadEast = 24, - MistInputActionOrigin_LeftTrigger_Pull = 25, - MistInputActionOrigin_LeftTrigger_Click = 26, - MistInputActionOrigin_RightTrigger_Pull = 27, - MistInputActionOrigin_RightTrigger_Click = 28, - MistInputActionOrigin_LeftStick_Move = 29, - MistInputActionOrigin_LeftStick_Click = 30, - MistInputActionOrigin_LeftStick_DPadNorth = 31, - MistInputActionOrigin_LeftStick_DPadSouth = 32, - MistInputActionOrigin_LeftStick_DPadWest = 33, - MistInputActionOrigin_LeftStick_DPadEast = 34, - MistInputActionOrigin_Gyro_Move = 35, - MistInputActionOrigin_Gyro_Pitch = 36, - MistInputActionOrigin_Gyro_Yaw = 37, - MistInputActionOrigin_Gyro_Roll = 38, + MistInputActionOrigin_SteamController_A = 1, + MistInputActionOrigin_SteamController_B = 2, + MistInputActionOrigin_SteamController_X = 3, + MistInputActionOrigin_SteamController_Y = 4, + MistInputActionOrigin_SteamController_LeftBumper = 5, + MistInputActionOrigin_SteamController_RightBumper = 6, + MistInputActionOrigin_SteamController_LeftGrip = 7, + MistInputActionOrigin_SteamController_RightGrip = 8, + MistInputActionOrigin_SteamController_Start = 9, + MistInputActionOrigin_SteamController_Back = 10, + MistInputActionOrigin_SteamController_LeftPad_Touch = 11, + MistInputActionOrigin_SteamController_LeftPad_Swipe = 12, + MistInputActionOrigin_SteamController_LeftPad_Click = 13, + MistInputActionOrigin_SteamController_LeftPad_DPadNorth = 14, + MistInputActionOrigin_SteamController_LeftPad_DPadSouth = 15, + MistInputActionOrigin_SteamController_LeftPad_DPadWest = 16, + MistInputActionOrigin_SteamController_LeftPad_DPadEast = 17, + MistInputActionOrigin_SteamController_RightPad_Touch = 18, + MistInputActionOrigin_SteamController_RightPad_Swipe = 19, + MistInputActionOrigin_SteamController_RightPad_Click = 20, + MistInputActionOrigin_SteamController_RightPad_DPadNorth = 21, + MistInputActionOrigin_SteamController_RightPad_DPadSouth = 22, + MistInputActionOrigin_SteamController_RightPad_DPadWest = 23, + MistInputActionOrigin_SteamController_RightPad_DPadEast = 24, + MistInputActionOrigin_SteamController_LeftTrigger_Pull = 25, + MistInputActionOrigin_SteamController_LeftTrigger_Click = 26, + MistInputActionOrigin_SteamController_RightTrigger_Pull = 27, + MistInputActionOrigin_SteamController_RightTrigger_Click = 28, + MistInputActionOrigin_SteamController_LeftStick_Move = 29, + MistInputActionOrigin_SteamController_LeftStick_Click = 30, + MistInputActionOrigin_SteamController_LeftStick_DPadNorth = 31, + MistInputActionOrigin_SteamController_LeftStick_DPadSouth = 32, + MistInputActionOrigin_SteamController_LeftStick_DPadWest = 33, + MistInputActionOrigin_SteamController_LeftStick_DPadEast = 34, + MistInputActionOrigin_SteamController_Gyro_Move = 35, + MistInputActionOrigin_SteamController_Gyro_Pitch = 36, + MistInputActionOrigin_SteamController_Gyro_Yaw = 37, + MistInputActionOrigin_SteamController_Gyro_Roll = 38, MistInputActionOrigin_SteamController_Reserved0 = 39, MistInputActionOrigin_SteamController_Reserved1 = 40, MistInputActionOrigin_SteamController_Reserved2 = 41, @@ -174,7 +155,7 @@ enum MistInputActionOrigin { MistInputActionOrigin_PS4_Gyro_Pitch = 100, MistInputActionOrigin_PS4_Gyro_Yaw = 101, MistInputActionOrigin_PS4_Gyro_Roll = 102, - MistInputActionOrigin_PS4_Reserved0 = 103, + MistInputActionOrigin_PS4_DPad_Move = 103, MistInputActionOrigin_PS4_Reserved1 = 104, MistInputActionOrigin_PS4_Reserved2 = 105, MistInputActionOrigin_PS4_Reserved3 = 106, @@ -213,12 +194,12 @@ enum MistInputActionOrigin { MistInputActionOrigin_XBoxOne_DPad_South = 139, MistInputActionOrigin_XBoxOne_DPad_West = 140, MistInputActionOrigin_XBoxOne_DPad_East = 141, - MistInputActionOrigin_XBoxOne_Reserved0 = 142, - MistInputActionOrigin_XBoxOne_Reserved1 = 143, - MistInputActionOrigin_XBoxOne_Reserved2 = 144, - MistInputActionOrigin_XBoxOne_Reserved3 = 145, - MistInputActionOrigin_XBoxOne_Reserved4 = 146, - MistInputActionOrigin_XBoxOne_Reserved5 = 147, + MistInputActionOrigin_XBoxOne_DPad_Move = 142, + MistInputActionOrigin_XBoxOne_LeftGrip_Lower = 143, + MistInputActionOrigin_XBoxOne_LeftGrip_Upper = 144, + MistInputActionOrigin_XBoxOne_RightGrip_Lower = 145, + MistInputActionOrigin_XBoxOne_RightGrip_Upper = 146, + MistInputActionOrigin_XBoxOne_Share = 147, MistInputActionOrigin_XBoxOne_Reserved6 = 148, MistInputActionOrigin_XBoxOne_Reserved7 = 149, MistInputActionOrigin_XBoxOne_Reserved8 = 150, @@ -252,7 +233,7 @@ enum MistInputActionOrigin { MistInputActionOrigin_XBox360_DPad_South = 178, MistInputActionOrigin_XBox360_DPad_West = 179, MistInputActionOrigin_XBox360_DPad_East = 180, - MistInputActionOrigin_XBox360_Reserved0 = 181, + MistInputActionOrigin_XBox360_DPad_Move = 181, MistInputActionOrigin_XBox360_Reserved1 = 182, MistInputActionOrigin_XBox360_Reserved2 = 183, MistInputActionOrigin_XBox360_Reserved3 = 184, @@ -292,11 +273,11 @@ enum MistInputActionOrigin { MistInputActionOrigin_Switch_DPad_South = 218, MistInputActionOrigin_Switch_DPad_West = 219, MistInputActionOrigin_Switch_DPad_East = 220, - MistInputActionOrigin_SwitchProGyro_Move = 221, - MistInputActionOrigin_SwitchProGyro_Pitch = 222, - MistInputActionOrigin_SwitchProGyro_Yaw = 223, - MistInputActionOrigin_SwitchProGyro_Roll = 224, - MistInputActionOrigin_Switch_Reserved0 = 225, + MistInputActionOrigin_Switch_ProGyro_Move = 221, + MistInputActionOrigin_Switch_ProGyro_Pitch = 222, + MistInputActionOrigin_Switch_ProGyro_Yaw = 223, + MistInputActionOrigin_Switch_ProGyro_Roll = 224, + MistInputActionOrigin_Switch_DPad_Move = 225, MistInputActionOrigin_Switch_Reserved1 = 226, MistInputActionOrigin_Switch_Reserved2 = 227, MistInputActionOrigin_Switch_Reserved3 = 228, @@ -307,15 +288,473 @@ enum MistInputActionOrigin { MistInputActionOrigin_Switch_Reserved8 = 233, MistInputActionOrigin_Switch_Reserved9 = 234, MistInputActionOrigin_Switch_Reserved10 = 235, - MistInputActionOrigin_Count = 258, + MistInputActionOrigin_Switch_RightGyro_Move = 236, + MistInputActionOrigin_Switch_RightGyro_Pitch = 237, + MistInputActionOrigin_Switch_RightGyro_Yaw = 238, + MistInputActionOrigin_Switch_RightGyro_Roll = 239, + MistInputActionOrigin_Switch_LeftGyro_Move = 240, + MistInputActionOrigin_Switch_LeftGyro_Pitch = 241, + MistInputActionOrigin_Switch_LeftGyro_Yaw = 242, + MistInputActionOrigin_Switch_LeftGyro_Roll = 243, + MistInputActionOrigin_Switch_LeftGrip_Lower = 244, + MistInputActionOrigin_Switch_LeftGrip_Upper = 245, + MistInputActionOrigin_Switch_RightGrip_Lower = 246, + MistInputActionOrigin_Switch_RightGrip_Upper = 247, + MistInputActionOrigin_Switch_JoyConButton_N = 248, + MistInputActionOrigin_Switch_JoyConButton_E = 249, + MistInputActionOrigin_Switch_JoyConButton_S = 250, + MistInputActionOrigin_Switch_JoyConButton_W = 251, + MistInputActionOrigin_Switch_Reserved15 = 252, + MistInputActionOrigin_Switch_Reserved16 = 253, + MistInputActionOrigin_Switch_Reserved17 = 254, + MistInputActionOrigin_Switch_Reserved18 = 255, + MistInputActionOrigin_Switch_Reserved19 = 256, + MistInputActionOrigin_Switch_Reserved20 = 257, + MistInputActionOrigin_PS5_X = 258, + MistInputActionOrigin_PS5_Circle = 259, + MistInputActionOrigin_PS5_Triangle = 260, + MistInputActionOrigin_PS5_Square = 261, + MistInputActionOrigin_PS5_LeftBumper = 262, + MistInputActionOrigin_PS5_RightBumper = 263, + MistInputActionOrigin_PS5_Option = 264, + MistInputActionOrigin_PS5_Create = 265, + MistInputActionOrigin_PS5_Mute = 266, + MistInputActionOrigin_PS5_LeftPad_Touch = 267, + MistInputActionOrigin_PS5_LeftPad_Swipe = 268, + MistInputActionOrigin_PS5_LeftPad_Click = 269, + MistInputActionOrigin_PS5_LeftPad_DPadNorth = 270, + MistInputActionOrigin_PS5_LeftPad_DPadSouth = 271, + MistInputActionOrigin_PS5_LeftPad_DPadWest = 272, + MistInputActionOrigin_PS5_LeftPad_DPadEast = 273, + MistInputActionOrigin_PS5_RightPad_Touch = 274, + MistInputActionOrigin_PS5_RightPad_Swipe = 275, + MistInputActionOrigin_PS5_RightPad_Click = 276, + MistInputActionOrigin_PS5_RightPad_DPadNorth = 277, + MistInputActionOrigin_PS5_RightPad_DPadSouth = 278, + MistInputActionOrigin_PS5_RightPad_DPadWest = 279, + MistInputActionOrigin_PS5_RightPad_DPadEast = 280, + MistInputActionOrigin_PS5_CenterPad_Touch = 281, + MistInputActionOrigin_PS5_CenterPad_Swipe = 282, + MistInputActionOrigin_PS5_CenterPad_Click = 283, + MistInputActionOrigin_PS5_CenterPad_DPadNorth = 284, + MistInputActionOrigin_PS5_CenterPad_DPadSouth = 285, + MistInputActionOrigin_PS5_CenterPad_DPadWest = 286, + MistInputActionOrigin_PS5_CenterPad_DPadEast = 287, + MistInputActionOrigin_PS5_LeftTrigger_Pull = 288, + MistInputActionOrigin_PS5_LeftTrigger_Click = 289, + MistInputActionOrigin_PS5_RightTrigger_Pull = 290, + MistInputActionOrigin_PS5_RightTrigger_Click = 291, + MistInputActionOrigin_PS5_LeftStick_Move = 292, + MistInputActionOrigin_PS5_LeftStick_Click = 293, + MistInputActionOrigin_PS5_LeftStick_DPadNorth = 294, + MistInputActionOrigin_PS5_LeftStick_DPadSouth = 295, + MistInputActionOrigin_PS5_LeftStick_DPadWest = 296, + MistInputActionOrigin_PS5_LeftStick_DPadEast = 297, + MistInputActionOrigin_PS5_RightStick_Move = 298, + MistInputActionOrigin_PS5_RightStick_Click = 299, + MistInputActionOrigin_PS5_RightStick_DPadNorth = 300, + MistInputActionOrigin_PS5_RightStick_DPadSouth = 301, + MistInputActionOrigin_PS5_RightStick_DPadWest = 302, + MistInputActionOrigin_PS5_RightStick_DPadEast = 303, + MistInputActionOrigin_PS5_DPad_North = 304, + MistInputActionOrigin_PS5_DPad_South = 305, + MistInputActionOrigin_PS5_DPad_West = 306, + MistInputActionOrigin_PS5_DPad_East = 307, + MistInputActionOrigin_PS5_Gyro_Move = 308, + MistInputActionOrigin_PS5_Gyro_Pitch = 309, + MistInputActionOrigin_PS5_Gyro_Yaw = 310, + MistInputActionOrigin_PS5_Gyro_Roll = 311, + MistInputActionOrigin_PS5_DPad_Move = 312, + MistInputActionOrigin_PS5_LeftGrip = 313, + MistInputActionOrigin_PS5_RightGrip = 314, + MistInputActionOrigin_PS5_LeftFn = 315, + MistInputActionOrigin_PS5_RightFn = 316, + MistInputActionOrigin_PS5_Reserved5 = 317, + MistInputActionOrigin_PS5_Reserved6 = 318, + MistInputActionOrigin_PS5_Reserved7 = 319, + MistInputActionOrigin_PS5_Reserved8 = 320, + MistInputActionOrigin_PS5_Reserved9 = 321, + MistInputActionOrigin_PS5_Reserved10 = 322, + MistInputActionOrigin_PS5_Reserved11 = 323, + MistInputActionOrigin_PS5_Reserved12 = 324, + MistInputActionOrigin_PS5_Reserved13 = 325, + MistInputActionOrigin_PS5_Reserved14 = 326, + MistInputActionOrigin_PS5_Reserved15 = 327, + MistInputActionOrigin_PS5_Reserved16 = 328, + MistInputActionOrigin_PS5_Reserved17 = 329, + MistInputActionOrigin_PS5_Reserved18 = 330, + MistInputActionOrigin_PS5_Reserved19 = 331, + MistInputActionOrigin_PS5_Reserved20 = 332, + MistInputActionOrigin_SteamDeck_A = 333, + MistInputActionOrigin_SteamDeck_B = 334, + MistInputActionOrigin_SteamDeck_X = 335, + MistInputActionOrigin_SteamDeck_Y = 336, + MistInputActionOrigin_SteamDeck_L1 = 337, + MistInputActionOrigin_SteamDeck_R1 = 338, + MistInputActionOrigin_SteamDeck_Menu = 339, + MistInputActionOrigin_SteamDeck_View = 340, + MistInputActionOrigin_SteamDeck_LeftPad_Touch = 341, + MistInputActionOrigin_SteamDeck_LeftPad_Swipe = 342, + MistInputActionOrigin_SteamDeck_LeftPad_Click = 343, + MistInputActionOrigin_SteamDeck_LeftPad_DPadNorth = 344, + MistInputActionOrigin_SteamDeck_LeftPad_DPadSouth = 345, + MistInputActionOrigin_SteamDeck_LeftPad_DPadWest = 346, + MistInputActionOrigin_SteamDeck_LeftPad_DPadEast = 347, + MistInputActionOrigin_SteamDeck_RightPad_Touch = 348, + MistInputActionOrigin_SteamDeck_RightPad_Swipe = 349, + MistInputActionOrigin_SteamDeck_RightPad_Click = 350, + MistInputActionOrigin_SteamDeck_RightPad_DPadNorth = 351, + MistInputActionOrigin_SteamDeck_RightPad_DPadSouth = 352, + MistInputActionOrigin_SteamDeck_RightPad_DPadWest = 353, + MistInputActionOrigin_SteamDeck_RightPad_DPadEast = 354, + MistInputActionOrigin_SteamDeck_L2_SoftPull = 355, + MistInputActionOrigin_SteamDeck_L2 = 356, + MistInputActionOrigin_SteamDeck_R2_SoftPull = 357, + MistInputActionOrigin_SteamDeck_R2 = 358, + MistInputActionOrigin_SteamDeck_LeftStick_Move = 359, + MistInputActionOrigin_SteamDeck_L3 = 360, + MistInputActionOrigin_SteamDeck_LeftStick_DPadNorth = 361, + MistInputActionOrigin_SteamDeck_LeftStick_DPadSouth = 362, + MistInputActionOrigin_SteamDeck_LeftStick_DPadWest = 363, + MistInputActionOrigin_SteamDeck_LeftStick_DPadEast = 364, + MistInputActionOrigin_SteamDeck_LeftStick_Touch = 365, + MistInputActionOrigin_SteamDeck_RightStick_Move = 366, + MistInputActionOrigin_SteamDeck_R3 = 367, + MistInputActionOrigin_SteamDeck_RightStick_DPadNorth = 368, + MistInputActionOrigin_SteamDeck_RightStick_DPadSouth = 369, + MistInputActionOrigin_SteamDeck_RightStick_DPadWest = 370, + MistInputActionOrigin_SteamDeck_RightStick_DPadEast = 371, + MistInputActionOrigin_SteamDeck_RightStick_Touch = 372, + MistInputActionOrigin_SteamDeck_L4 = 373, + MistInputActionOrigin_SteamDeck_R4 = 374, + MistInputActionOrigin_SteamDeck_L5 = 375, + MistInputActionOrigin_SteamDeck_R5 = 376, + MistInputActionOrigin_SteamDeck_DPad_Move = 377, + MistInputActionOrigin_SteamDeck_DPad_North = 378, + MistInputActionOrigin_SteamDeck_DPad_South = 379, + MistInputActionOrigin_SteamDeck_DPad_West = 380, + MistInputActionOrigin_SteamDeck_DPad_East = 381, + MistInputActionOrigin_SteamDeck_Gyro_Move = 382, + MistInputActionOrigin_SteamDeck_Gyro_Pitch = 383, + MistInputActionOrigin_SteamDeck_Gyro_Yaw = 384, + MistInputActionOrigin_SteamDeck_Gyro_Roll = 385, + MistInputActionOrigin_SteamDeck_Reserved1 = 386, + MistInputActionOrigin_SteamDeck_Reserved2 = 387, + MistInputActionOrigin_SteamDeck_Reserved3 = 388, + MistInputActionOrigin_SteamDeck_Reserved4 = 389, + MistInputActionOrigin_SteamDeck_Reserved5 = 390, + MistInputActionOrigin_SteamDeck_Reserved6 = 391, + MistInputActionOrigin_SteamDeck_Reserved7 = 392, + MistInputActionOrigin_SteamDeck_Reserved8 = 393, + MistInputActionOrigin_SteamDeck_Reserved9 = 394, + MistInputActionOrigin_SteamDeck_Reserved10 = 395, + MistInputActionOrigin_SteamDeck_Reserved11 = 396, + MistInputActionOrigin_SteamDeck_Reserved12 = 397, + MistInputActionOrigin_SteamDeck_Reserved13 = 398, + MistInputActionOrigin_SteamDeck_Reserved14 = 399, + MistInputActionOrigin_SteamDeck_Reserved15 = 400, + MistInputActionOrigin_SteamDeck_Reserved16 = 401, + MistInputActionOrigin_SteamDeck_Reserved17 = 402, + MistInputActionOrigin_SteamDeck_Reserved18 = 403, + MistInputActionOrigin_SteamDeck_Reserved19 = 404, + MistInputActionOrigin_SteamDeck_Reserved20 = 405, + MistInputActionOrigin_Horipad_M1 = 406, + MistInputActionOrigin_Horipad_M2 = 407, + MistInputActionOrigin_Horipad_L4 = 408, + MistInputActionOrigin_Horipad_R4 = 409, + MistInputActionOrigin_LenovoLegionGo_A = 410, + MistInputActionOrigin_LenovoLegionGo_B = 411, + MistInputActionOrigin_LenovoLegionGo_X = 412, + MistInputActionOrigin_LenovoLegionGo_Y = 413, + MistInputActionOrigin_LenovoLegionGo_LB = 414, + MistInputActionOrigin_LenovoLegionGo_RB = 415, + MistInputActionOrigin_LenovoLegionGo_Menu = 416, + MistInputActionOrigin_LenovoLegionGo_View = 417, + MistInputActionOrigin_LenovoLegionGo_LeftPad_Touch = 418, + MistInputActionOrigin_LenovoLegionGo_LeftPad_Swipe = 419, + MistInputActionOrigin_LenovoLegionGo_LeftPad_Click = 420, + MistInputActionOrigin_LenovoLegionGo_LeftPad_DPadNorth = 421, + MistInputActionOrigin_LenovoLegionGo_LeftPad_DPadSouth = 422, + MistInputActionOrigin_LenovoLegionGo_LeftPad_DPadWest = 423, + MistInputActionOrigin_LenovoLegionGo_LeftPad_DPadEast = 424, + MistInputActionOrigin_LenovoLegionGo_RightPad_Touch = 425, + MistInputActionOrigin_LenovoLegionGo_RightPad_Swipe = 426, + MistInputActionOrigin_LenovoLegionGo_RightPad_Click = 427, + MistInputActionOrigin_LenovoLegionGo_RightPad_DPadNorth = 428, + MistInputActionOrigin_LenovoLegionGo_RightPad_DPadSouth = 429, + MistInputActionOrigin_LenovoLegionGo_RightPad_DPadWest = 430, + MistInputActionOrigin_LenovoLegionGo_RightPad_DPadEast = 431, + MistInputActionOrigin_LenovoLegionGo_LT_SoftPull = 432, + MistInputActionOrigin_LenovoLegionGo_LT = 433, + MistInputActionOrigin_LenovoLegionGo_RT_SoftPull = 434, + MistInputActionOrigin_LenovoLegionGo_RT = 435, + MistInputActionOrigin_LenovoLegionGo_LeftStick_Move = 436, + MistInputActionOrigin_LenovoLegionGo_LS = 437, + MistInputActionOrigin_LenovoLegionGo_LeftStick_DPadNorth = 438, + MistInputActionOrigin_LenovoLegionGo_LeftStick_DPadSouth = 439, + MistInputActionOrigin_LenovoLegionGo_LeftStick_DPadWest = 440, + MistInputActionOrigin_LenovoLegionGo_LeftStick_DPadEast = 441, + MistInputActionOrigin_LenovoLegionGo_RightStick_Move = 442, + MistInputActionOrigin_LenovoLegionGo_RS = 443, + MistInputActionOrigin_LenovoLegionGo_RightStick_DPadNorth = 444, + MistInputActionOrigin_LenovoLegionGo_RightStick_DPadSouth = 445, + MistInputActionOrigin_LenovoLegionGo_RightStick_DPadWest = 446, + MistInputActionOrigin_LenovoLegionGo_RightStick_DPadEast = 447, + MistInputActionOrigin_LenovoLegionGo_Y1 = 448, + MistInputActionOrigin_LenovoLegionGo_Y2 = 449, + MistInputActionOrigin_LenovoLegionGo_DPad_Move = 450, + MistInputActionOrigin_LenovoLegionGo_DPad_North = 451, + MistInputActionOrigin_LenovoLegionGo_DPad_South = 452, + MistInputActionOrigin_LenovoLegionGo_DPad_West = 453, + MistInputActionOrigin_LenovoLegionGo_DPad_East = 454, + MistInputActionOrigin_LenovoLegionGo_Gyro_Move = 455, + MistInputActionOrigin_LenovoLegionGo_Gyro_Pitch = 456, + MistInputActionOrigin_LenovoLegionGo_Gyro_Yaw = 457, + MistInputActionOrigin_LenovoLegionGo_Gyro_Roll = 458, + MistInputActionOrigin_LenovoLegionGo_Reserved1 = 459, + MistInputActionOrigin_LenovoLegionGo_Reserved2 = 460, + MistInputActionOrigin_LenovoLegionGo_Reserved3 = 461, + MistInputActionOrigin_LenovoLegionGo_Reserved4 = 462, + MistInputActionOrigin_LenovoLegionGo_Reserved5 = 463, + MistInputActionOrigin_LenovoLegionGo_Reserved6 = 464, + MistInputActionOrigin_LenovoLegionGo_Reserved7 = 465, + MistInputActionOrigin_LenovoLegionGo_Reserved8 = 466, + MistInputActionOrigin_LenovoLegionGo_Reserved9 = 467, + MistInputActionOrigin_LenovoLegionGo_Reserved10 = 468, + MistInputActionOrigin_LenovoLegionGo_Reserved11 = 469, + MistInputActionOrigin_LenovoLegionGo_Reserved12 = 470, + MistInputActionOrigin_LenovoLegionGo_Reserved13 = 471, + MistInputActionOrigin_LenovoLegionGo_Reserved14 = 472, + MistInputActionOrigin_LenovoLegionGo_Reserved15 = 473, + MistInputActionOrigin_LenovoLegionGo_Reserved16 = 474, + MistInputActionOrigin_LenovoLegionGo_Reserved17 = 475, + MistInputActionOrigin_LenovoLegionGo_Reserved18 = 476, + MistInputActionOrigin_LenovoLegionGo_Reserved19 = 477, + MistInputActionOrigin_LenovoLegionGo_Reserved20 = 478, + MistInputActionOrigin_Generic_L4 = 479, + MistInputActionOrigin_Generic_R4 = 480, + MistInputActionOrigin_Generic_L5 = 481, + MistInputActionOrigin_Generic_R5 = 482, + MistInputActionOrigin_Generic_PL = 483, + MistInputActionOrigin_Generic_PR = 484, + MistInputActionOrigin_Generic_C = 485, + MistInputActionOrigin_Generic_Z = 486, + MistInputActionOrigin_Generic_MISC1 = 487, + MistInputActionOrigin_Generic_MISC2 = 488, + MistInputActionOrigin_Generic_MISC3 = 489, + MistInputActionOrigin_Generic_MISC4 = 490, + MistInputActionOrigin_Generic_MISC5 = 491, + MistInputActionOrigin_Generic_MISC6 = 492, + MistInputActionOrigin_Generic_MISC7 = 493, + MistInputActionOrigin_Generic_MISC8 = 494, + MistInputActionOrigin_Switch2_A = 495, + MistInputActionOrigin_Switch2_B = 496, + MistInputActionOrigin_Switch2_X = 497, + MistInputActionOrigin_Switch2_Y = 498, + MistInputActionOrigin_Switch2_LeftBumper = 499, + MistInputActionOrigin_Switch2_RightBumper = 500, + MistInputActionOrigin_Switch2_Plus = 501, + MistInputActionOrigin_Switch2_Minus = 502, + MistInputActionOrigin_Switch2_Capture = 503, + MistInputActionOrigin_Switch2_LeftTrigger_Pull = 504, + MistInputActionOrigin_Switch2_LeftTrigger_Click = 505, + MistInputActionOrigin_Switch2_RightTrigger_Pull = 506, + MistInputActionOrigin_Switch2_RightTrigger_Click = 507, + MistInputActionOrigin_Switch2_LeftStick_Move = 508, + MistInputActionOrigin_Switch2_LeftStick_Click = 509, + MistInputActionOrigin_Switch2_LeftStick_DPadNorth = 510, + MistInputActionOrigin_Switch2_LeftStick_DPadSouth = 511, + MistInputActionOrigin_Switch2_LeftStick_DPadWest = 512, + MistInputActionOrigin_Switch2_LeftStick_DPadEast = 513, + MistInputActionOrigin_Switch2_RightStick_Move = 514, + MistInputActionOrigin_Switch2_RightStick_Click = 515, + MistInputActionOrigin_Switch2_RightStick_DPadNorth = 516, + MistInputActionOrigin_Switch2_RightStick_DPadSouth = 517, + MistInputActionOrigin_Switch2_RightStick_DPadWest = 518, + MistInputActionOrigin_Switch2_RightStick_DPadEast = 519, + MistInputActionOrigin_Switch2_DPad_Move = 520, + MistInputActionOrigin_Switch2_DPad_North = 521, + MistInputActionOrigin_Switch2_DPad_South = 522, + MistInputActionOrigin_Switch2_DPad_West = 523, + MistInputActionOrigin_Switch2_DPad_East = 524, + MistInputActionOrigin_Switch2_ProGyro_Move = 525, + MistInputActionOrigin_Switch2_ProGyro_Pitch = 526, + MistInputActionOrigin_Switch2_ProGyro_Yaw = 527, + MistInputActionOrigin_Switch2_ProGyro_Roll = 528, + MistInputActionOrigin_Switch2_GL = 529, + MistInputActionOrigin_Switch2_GR = 530, + MistInputActionOrigin_Switch2_C = 531, + MistInputActionOrigin_Switch2_Reserved1 = 532, + MistInputActionOrigin_Switch2_Reserved2 = 533, + MistInputActionOrigin_Switch2_Reserved3 = 534, + MistInputActionOrigin_Switch2_Reserved4 = 535, + MistInputActionOrigin_Switch2_Reserved5 = 536, + MistInputActionOrigin_Switch2_Reserved6 = 537, + MistInputActionOrigin_Switch2_Reserved7 = 538, + MistInputActionOrigin_Switch2_Reserved8 = 539, + MistInputActionOrigin_Switch2_Reserved9 = 540, + MistInputActionOrigin_Switch2_Reserved10 = 541, + MistInputActionOrigin_SteamController2026_A = 542, + MistInputActionOrigin_SteamController2026_B = 543, + MistInputActionOrigin_SteamController2026_X = 544, + MistInputActionOrigin_SteamController2026_Y = 545, + MistInputActionOrigin_SteamController2026_L1 = 546, + MistInputActionOrigin_SteamController2026_R1 = 547, + MistInputActionOrigin_SteamController2026_Menu = 548, + MistInputActionOrigin_SteamController2026_View = 549, + MistInputActionOrigin_SteamController2026_LeftPad_Touch = 550, + MistInputActionOrigin_SteamController2026_LeftPad_Swipe = 551, + MistInputActionOrigin_SteamController2026_LeftPad_Click = 552, + MistInputActionOrigin_SteamController2026_LeftPad_DPadNorth = 553, + MistInputActionOrigin_SteamController2026_LeftPad_DPadSouth = 554, + MistInputActionOrigin_SteamController2026_LeftPad_DPadWest = 555, + MistInputActionOrigin_SteamController2026_LeftPad_DPadEast = 556, + MistInputActionOrigin_SteamController2026_RightPad_Touch = 557, + MistInputActionOrigin_SteamController2026_RightPad_Swipe = 558, + MistInputActionOrigin_SteamController2026_RightPad_Click = 559, + MistInputActionOrigin_SteamController2026_RightPad_DPadNorth = 560, + MistInputActionOrigin_SteamController2026_RightPad_DPadSouth = 561, + MistInputActionOrigin_SteamController2026_RightPad_DPadWest = 562, + MistInputActionOrigin_SteamController2026_RightPad_DPadEast = 563, + MistInputActionOrigin_SteamController2026_L2_SoftPull = 564, + MistInputActionOrigin_SteamController2026_L2 = 565, + MistInputActionOrigin_SteamController2026_R2_SoftPull = 566, + MistInputActionOrigin_SteamController2026_R2 = 567, + MistInputActionOrigin_SteamController2026_LeftStick_Move = 568, + MistInputActionOrigin_SteamController2026_L3 = 569, + MistInputActionOrigin_SteamController2026_LeftStick_DPadNorth = 570, + MistInputActionOrigin_SteamController2026_LeftStick_DPadSouth = 571, + MistInputActionOrigin_SteamController2026_LeftStick_DPadWest = 572, + MistInputActionOrigin_SteamController2026_LeftStick_DPadEast = 573, + MistInputActionOrigin_SteamController2026_LeftStick_Touch = 574, + MistInputActionOrigin_SteamController2026_RightStick_Move = 575, + MistInputActionOrigin_SteamController2026_R3 = 576, + MistInputActionOrigin_SteamController2026_RightStick_DPadNorth = 577, + MistInputActionOrigin_SteamController2026_RightStick_DPadSouth = 578, + MistInputActionOrigin_SteamController2026_RightStick_DPadWest = 579, + MistInputActionOrigin_SteamController2026_RightStick_DPadEast = 580, + MistInputActionOrigin_SteamController2026_RightStick_Touch = 581, + MistInputActionOrigin_SteamController2026_L4 = 582, + MistInputActionOrigin_SteamController2026_R4 = 583, + MistInputActionOrigin_SteamController2026_L5 = 584, + MistInputActionOrigin_SteamController2026_R5 = 585, + MistInputActionOrigin_SteamController2026_DPad_Move = 586, + MistInputActionOrigin_SteamController2026_DPad_North = 587, + MistInputActionOrigin_SteamController2026_DPad_South = 588, + MistInputActionOrigin_SteamController2026_DPad_West = 589, + MistInputActionOrigin_SteamController2026_DPad_East = 590, + MistInputActionOrigin_SteamController2026_Gyro_Move = 591, + MistInputActionOrigin_SteamController2026_Gyro_Pitch = 592, + MistInputActionOrigin_SteamController2026_Gyro_Yaw = 593, + MistInputActionOrigin_SteamController2026_Gyro_Roll = 594, + MistInputActionOrigin_SteamController2026_LGrip = 595, + MistInputActionOrigin_SteamController2026_RGrip = 596, + MistInputActionOrigin_SteamController2026_Reserved1 = 597, + MistInputActionOrigin_SteamController2026_Reserved2 = 598, + MistInputActionOrigin_SteamController2026_Reserved3 = 599, + MistInputActionOrigin_SteamController2026_Reserved4 = 600, + MistInputActionOrigin_SteamController2026_Reserved5 = 601, + MistInputActionOrigin_SteamController2026_Reserved6 = 602, + MistInputActionOrigin_SteamController2026_Reserved7 = 603, + MistInputActionOrigin_SteamController2026_Reserved8 = 604, + MistInputActionOrigin_SteamController2026_Reserved9 = 605, + MistInputActionOrigin_SteamController2026_Reserved10 = 606, + MistInputActionOrigin_SteamController2026_Reserved11 = 607, + MistInputActionOrigin_SteamController2026_Reserved12 = 608, + MistInputActionOrigin_SteamController2026_Reserved13 = 609, + MistInputActionOrigin_SteamController2026_Reserved14 = 610, + MistInputActionOrigin_SteamController2026_Reserved15 = 611, + MistInputActionOrigin_SteamController2026_Reserved16 = 612, + MistInputActionOrigin_SteamController2026_Reserved17 = 613, + MistInputActionOrigin_SteamController2026_Reserved18 = 614, + MistInputActionOrigin_SteamController2026_Reserved19 = 615, + MistInputActionOrigin_SteamController2026_Reserved20 = 616, + MistInputActionOrigin_SteamFrameController_A_Click = 617, + MistInputActionOrigin_SteamFrameController_A_Touch = 618, + MistInputActionOrigin_SteamFrameController_B_Click = 619, + MistInputActionOrigin_SteamFrameController_B_Touch = 620, + MistInputActionOrigin_SteamFrameController_X_Click = 621, + MistInputActionOrigin_SteamFrameController_X_Touch = 622, + MistInputActionOrigin_SteamFrameController_Y_Click = 623, + MistInputActionOrigin_SteamFrameController_Y_Touch = 624, + MistInputActionOrigin_SteamFrameController_LeftTrigger_Pull = 625, + MistInputActionOrigin_SteamFrameController_LeftTrigger_Click = 626, + MistInputActionOrigin_SteamFrameController_LeftTrigger_Touch = 627, + MistInputActionOrigin_SteamFrameController_RightTrigger_Pull = 628, + MistInputActionOrigin_SteamFrameController_RightTrigger_Click = 629, + MistInputActionOrigin_SteamFrameController_RightTrigger_Touch = 630, + MistInputActionOrigin_SteamFrameController_Menu_Click = 631, + MistInputActionOrigin_SteamFrameController_Menu_Touch = 632, + MistInputActionOrigin_SteamFrameController_View_Click = 633, + MistInputActionOrigin_SteamFrameController_View_Touch = 634, + MistInputActionOrigin_SteamFrameController_LeftBumper_Click = 635, + MistInputActionOrigin_SteamFrameController_LeftBumper_Touch = 636, + MistInputActionOrigin_SteamFrameController_RightBumper_Click = 637, + MistInputActionOrigin_SteamFrameController_RightBumper_Touch = 638, + MistInputActionOrigin_SteamFrameController_LeftStick_Move = 639, + MistInputActionOrigin_SteamFrameController_LeftStick_Click = 640, + MistInputActionOrigin_SteamFrameController_LeftStick_DPadNorth = 641, + MistInputActionOrigin_SteamFrameController_LeftStick_DPadSouth = 642, + MistInputActionOrigin_SteamFrameController_LeftStick_DPadWest = 643, + MistInputActionOrigin_SteamFrameController_LeftStick_DPadEast = 644, + MistInputActionOrigin_SteamFrameController_LeftStick_Touch = 645, + MistInputActionOrigin_SteamFrameController_RightStick_Move = 646, + MistInputActionOrigin_SteamFrameController_RightStick_Click = 647, + MistInputActionOrigin_SteamFrameController_RightStick_DPadNorth = 648, + MistInputActionOrigin_SteamFrameController_RightStick_DPadSouth = 649, + MistInputActionOrigin_SteamFrameController_RightStick_DPadWest = 650, + MistInputActionOrigin_SteamFrameController_RightStick_DPadEast = 651, + MistInputActionOrigin_SteamFrameController_RightStick_Touch = 652, + MistInputActionOrigin_SteamFrameController_DPad_Move = 653, + MistInputActionOrigin_SteamFrameController_DPad_North = 654, + MistInputActionOrigin_SteamFrameController_DPad_South = 655, + MistInputActionOrigin_SteamFrameController_DPad_West = 656, + MistInputActionOrigin_SteamFrameController_DPad_East = 657, + MistInputActionOrigin_SteamFrameController_DPad_Touch = 658, + MistInputActionOrigin_SteamFrameController_LeftGyro_Move = 659, + MistInputActionOrigin_SteamFrameController_LeftGyro_Pitch = 660, + MistInputActionOrigin_SteamFrameController_LeftGyro_Yaw = 661, + MistInputActionOrigin_SteamFrameController_LeftGyro_Roll = 662, + MistInputActionOrigin_SteamFrameController_RightGyro_Move = 663, + MistInputActionOrigin_SteamFrameController_RightGyro_Pitch = 664, + MistInputActionOrigin_SteamFrameController_RightGyro_Yaw = 665, + MistInputActionOrigin_SteamFrameController_RightGyro_Roll = 666, + MistInputActionOrigin_SteamFrameController_LeftGrip_Pull = 667, + MistInputActionOrigin_SteamFrameController_LeftGrip_Click = 668, + MistInputActionOrigin_SteamFrameController_LeftGrip_Touch = 669, + MistInputActionOrigin_SteamFrameController_RightGrip_Pull = 670, + MistInputActionOrigin_SteamFrameController_RightGrip_Click = 671, + MistInputActionOrigin_SteamFrameController_RightGrip_Touch = 672, + MistInputActionOrigin_SteamFrameController_LeftThumbrest_Touch = 673, + MistInputActionOrigin_SteamFrameController_RightThumbrest_Touch = 674, + MistInputActionOrigin_SteamFrameController_Reserved1 = 675, + MistInputActionOrigin_SteamFrameController_Reserved2 = 676, + MistInputActionOrigin_SteamFrameController_Reserved3 = 677, + MistInputActionOrigin_SteamFrameController_Reserved4 = 678, + MistInputActionOrigin_SteamFrameController_Reserved5 = 679, + MistInputActionOrigin_SteamFrameController_Reserved6 = 680, + MistInputActionOrigin_SteamFrameController_Reserved7 = 681, + MistInputActionOrigin_SteamFrameController_Reserved8 = 682, + MistInputActionOrigin_SteamFrameController_Reserved9 = 683, + MistInputActionOrigin_SteamFrameController_Reserved10 = 684, + MistInputActionOrigin_SteamFrameController_Reserved11 = 685, + MistInputActionOrigin_SteamFrameController_Reserved12 = 686, + MistInputActionOrigin_SteamFrameController_Reserved13 = 687, + MistInputActionOrigin_SteamFrameController_Reserved14 = 688, + MistInputActionOrigin_SteamFrameController_Reserved15 = 689, + MistInputActionOrigin_SteamFrameController_Reserved16 = 690, + MistInputActionOrigin_SteamFrameController_Reserved17 = 691, + MistInputActionOrigin_SteamFrameController_Reserved18 = 692, + MistInputActionOrigin_SteamFrameController_Reserved19 = 693, + MistInputActionOrigin_SteamFrameController_Reserved20 = 694, + MistInputActionOrigin_Count = 695, MistInputActionOrigin_MaximumPossibleValue = 32767, }; +#if __STDC_VERSION__ >= 202311L +typedef enum MistInputActionOrigin MistInputActionOrigin; +#else typedef uint32_t MistInputActionOrigin; - -typedef enum MistSteamControllerLEDFlag { - MistSteamControllerLEDFlag_SetColor = 0, - MistSteamControllerLEDFlag_RestoreUserDefault = 1, -} MistSteamControllerLEDFlag; +#endif // __STDC_VERSION__ >= 202311L typedef enum MistSteamInputGlyphSize { MistSteamInputGlyphSize_Small = 0, @@ -337,7 +776,7 @@ typedef enum MistSteamInputType { MistSteamInputType_SteamController = 1, MistSteamInputType_XBox360Controller = 2, MistSteamInputType_XBoxOneController = 3, - MistSteamInputType_GenericXInput = 4, + MistSteamInputType_GenericGamepad = 4, MistSteamInputType_PS4Controller = 5, MistSteamInputType_AppleMFiController = 6, MistSteamInputType_AndroidController = 7, @@ -348,10 +787,42 @@ typedef enum MistSteamInputType { MistSteamInputType_PS3Controller = 12, MistSteamInputType_PS5Controller = 13, MistSteamInputType_SteamDeckController = 14, - MistSteamInputType_Count = 15, + MistSteamInputType_SteamOSHandheld = 15, + MistSteamInputType_Switch2ProController = 16, + MistSteamInputType_SteamController2026 = 17, + MistSteamInputType_SteamFrameControllerPair = 18, + MistSteamInputType_Count = 19, MistSteamInputType_MaximumPossibleValue = 255, } MistSteamInputType; +typedef enum MistSteamControllerLEDFlag { + MistSteamControllerLEDFlag_SetColor = 0, + MistSteamControllerLEDFlag_RestoreUserDefault = 1, +} MistSteamControllerLEDFlag; + +typedef enum MistControllerHapticLocation { + MistControllerHapticLocation_Left = 1, + MistControllerHapticLocation_Right = 2, + MistControllerHapticLocation_Both = (1 | 2), +} MistControllerHapticLocation; + +typedef enum MistGamepadTextInputMode { + MistGamepadTextInputMode_Normal = 0, + MistGamepadTextInputMode_Password = 1, +} MistGamepadTextInputMode; + +typedef enum MistGamepadTextInputLineMode { + MistGamepadTextInputLineMode_SingleLine = 0, + MistGamepadTextInputLineMode_MultipleLines = 1, +} MistGamepadTextInputLineMode; + +typedef enum MistFloatingGamepadTextInputMode { + MistFloatingGamepadTextInputMode_SingleLine = 0, + MistFloatingGamepadTextInputMode_MultipleLines = 1, + MistFloatingGamepadTextInputMode_Email = 2, + MistFloatingGamepadTextInputMode_Numeric = 3, +} MistFloatingGamepadTextInputMode; + typedef uint32_t MistResult; typedef int32_t SteamUser; diff --git a/mist/src/callbacks.rs b/mist/src/callbacks.rs index 814e966..381b393 100644 --- a/mist/src/callbacks.rs +++ b/mist/src/callbacks.rs @@ -16,7 +16,7 @@ mist_callbacks!( [(|server, event| { if !event.m_bSubmitted { return; } - let steam_utils = unsafe { steamworks_sys::SteamAPI_SteamUtils_v010() }; + let steam_utils = unsafe { steamworks_sys::SteamAPI_SteamUtils_v011() }; let text_len = unsafe { steamworks_sys::SteamAPI_ISteamUtils_GetEnteredGamepadTextLength(steam_utils) }; diff --git a/mist/src/main.rs b/mist/src/main.rs index 6a7a5c3..81ccf77 100644 --- a/mist/src/main.rs +++ b/mist/src/main.rs @@ -25,8 +25,14 @@ fn main() { // Init the steam api unsafe { - if !steamworks_sys::SteamAPI_Init() { - eprintln!("[mist] Error during SteamAPI init."); + let mut err_msg: steamworks_sys::SteamErrMsg = [0; 1024]; + if steamworks_sys::SteamAPI_InitFlat(&mut err_msg) + != steamworks_sys::ESteamAPIInitResult_k_ESteamAPIInitResult_OK + { + eprintln!( + "[mist] Error during SteamAPI init: {}", + std::ffi::CStr::from_ptr(err_msg.as_ptr()).to_string_lossy() + ); std::process::exit(1); } diff --git a/mist/src/subprocess.rs b/mist/src/subprocess.rs index 411a018..cd3234d 100644 --- a/mist/src/subprocess.rs +++ b/mist/src/subprocess.rs @@ -10,13 +10,13 @@ const DEFAULT_TIMEOUT: u64 = 1000 / 120; // 120 Hz pub fn run() -> Result<()> { // Setup the service context which is avaliable to all the service calls let service = MistServerService { - steam_apps: unsafe { steamworks_sys::SteamAPI_SteamApps_v008() }, + steam_apps: unsafe { steamworks_sys::SteamAPI_SteamApps_v009() }, steam_pipe: unsafe { steamworks_sys::SteamAPI_GetHSteamPipe() }, - steam_friends: unsafe { steamworks_sys::SteamAPI_SteamFriends_v017() }, - steam_input: unsafe { steamworks_sys::SteamAPI_SteamInput_v006() }, + steam_friends: unsafe { steamworks_sys::SteamAPI_SteamFriends_v018() }, + steam_input: unsafe { steamworks_sys::SteamAPI_SteamInput_v007() }, steam_remote_storage: unsafe { steamworks_sys::SteamAPI_SteamRemoteStorage_v016() }, steam_user: unsafe { steamworks_sys::SteamAPI_GetHSteamUser() }, - steam_utils: unsafe { steamworks_sys::SteamAPI_SteamUtils_v010() }, + steam_utils: unsafe { steamworks_sys::SteamAPI_SteamUtils_v011() }, entered_gamepad_text: None, steam_input_data: None, should_exit: false, diff --git a/mist/src/subprocess/utils.rs b/mist/src/subprocess/utils.rs index fbb2180..49dedd6 100644 --- a/mist/src/subprocess/utils.rs +++ b/mist/src/subprocess/utils.rs @@ -37,7 +37,8 @@ impl MistServiceSteamUtils for MistServerService { } fn is_steam_running_on_steam_deck(&mut self) -> Result { Ok(unsafe { - steamworks_sys::SteamAPI_ISteamUtils_IsSteamRunningOnSteamDeck(self.steam_utils) + steamworks_sys::SteamAPI_ISteamUtils_IsRunningOnSteamHardware(self.steam_utils) + == steamworks_sys::ESteamHardwareType_k_ESteamHardwareTypeSteamDeck }) } fn set_vr_headset_streaming_enabled(&mut self, enabled: bool) -> Result<(), Error> { diff --git a/mist/src/types.rs b/mist/src/types.rs index e73bb22..c3ae88c 100644 --- a/mist/src/types.rs +++ b/mist/src/types.rs @@ -28,44 +28,44 @@ pub struct DlcData { #[repr(u32)] pub enum MistInputActionOrigin { None = 0, - A = 1, - B = 2, - X = 3, - Y = 4, - LeftBumper = 5, - RightBumper = 6, - LeftGrip = 7, - RightGrip = 8, - Start = 9, - Back = 10, - LeftPad_Touch = 11, - LeftPad_Swipe = 12, - LeftPad_Click = 13, - LeftPad_DPadNorth = 14, - LeftPad_DPadSouth = 15, - LeftPad_DPadWest = 16, - LeftPad_DPadEast = 17, - RightPad_Touch = 18, - RightPad_Swipe = 19, - RightPad_Click = 20, - RightPad_DPadNorth = 21, - RightPad_DPadSouth = 22, - RightPad_DPadWest = 23, - RightPad_DPadEast = 24, - LeftTrigger_Pull = 25, - LeftTrigger_Click = 26, - RightTrigger_Pull = 27, - RightTrigger_Click = 28, - LeftStick_Move = 29, - LeftStick_Click = 30, - LeftStick_DPadNorth = 31, - LeftStick_DPadSouth = 32, - LeftStick_DPadWest = 33, - LeftStick_DPadEast = 34, - Gyro_Move = 35, - Gyro_Pitch = 36, - Gyro_Yaw = 37, - Gyro_Roll = 38, + SteamController_A = 1, + SteamController_B = 2, + SteamController_X = 3, + SteamController_Y = 4, + SteamController_LeftBumper = 5, + SteamController_RightBumper = 6, + SteamController_LeftGrip = 7, + SteamController_RightGrip = 8, + SteamController_Start = 9, + SteamController_Back = 10, + SteamController_LeftPad_Touch = 11, + SteamController_LeftPad_Swipe = 12, + SteamController_LeftPad_Click = 13, + SteamController_LeftPad_DPadNorth = 14, + SteamController_LeftPad_DPadSouth = 15, + SteamController_LeftPad_DPadWest = 16, + SteamController_LeftPad_DPadEast = 17, + SteamController_RightPad_Touch = 18, + SteamController_RightPad_Swipe = 19, + SteamController_RightPad_Click = 20, + SteamController_RightPad_DPadNorth = 21, + SteamController_RightPad_DPadSouth = 22, + SteamController_RightPad_DPadWest = 23, + SteamController_RightPad_DPadEast = 24, + SteamController_LeftTrigger_Pull = 25, + SteamController_LeftTrigger_Click = 26, + SteamController_RightTrigger_Pull = 27, + SteamController_RightTrigger_Click = 28, + SteamController_LeftStick_Move = 29, + SteamController_LeftStick_Click = 30, + SteamController_LeftStick_DPadNorth = 31, + SteamController_LeftStick_DPadSouth = 32, + SteamController_LeftStick_DPadWest = 33, + SteamController_LeftStick_DPadEast = 34, + SteamController_Gyro_Move = 35, + SteamController_Gyro_Pitch = 36, + SteamController_Gyro_Yaw = 37, + SteamController_Gyro_Roll = 38, SteamController_Reserved0 = 39, SteamController_Reserved1 = 40, SteamController_Reserved2 = 41, @@ -130,7 +130,7 @@ pub enum MistInputActionOrigin { PS4_Gyro_Pitch = 100, PS4_Gyro_Yaw = 101, PS4_Gyro_Roll = 102, - PS4_Reserved0 = 103, + PS4_DPad_Move = 103, PS4_Reserved1 = 104, PS4_Reserved2 = 105, PS4_Reserved3 = 106, @@ -169,12 +169,12 @@ pub enum MistInputActionOrigin { XBoxOne_DPad_South = 139, XBoxOne_DPad_West = 140, XBoxOne_DPad_East = 141, - XBoxOne_Reserved0 = 142, - XBoxOne_Reserved1 = 143, - XBoxOne_Reserved2 = 144, - XBoxOne_Reserved3 = 145, - XBoxOne_Reserved4 = 146, - XBoxOne_Reserved5 = 147, + XBoxOne_DPad_Move = 142, + XBoxOne_LeftGrip_Lower = 143, + XBoxOne_LeftGrip_Upper = 144, + XBoxOne_RightGrip_Lower = 145, + XBoxOne_RightGrip_Upper = 146, + XBoxOne_Share = 147, XBoxOne_Reserved6 = 148, XBoxOne_Reserved7 = 149, XBoxOne_Reserved8 = 150, @@ -208,7 +208,7 @@ pub enum MistInputActionOrigin { XBox360_DPad_South = 178, XBox360_DPad_West = 179, XBox360_DPad_East = 180, - XBox360_Reserved0 = 181, + XBox360_DPad_Move = 181, XBox360_Reserved1 = 182, XBox360_Reserved2 = 183, XBox360_Reserved3 = 184, @@ -248,11 +248,11 @@ pub enum MistInputActionOrigin { Switch_DPad_South = 218, Switch_DPad_West = 219, Switch_DPad_East = 220, - SwitchProGyro_Move = 221, - SwitchProGyro_Pitch = 222, - SwitchProGyro_Yaw = 223, - SwitchProGyro_Roll = 224, - Switch_Reserved0 = 225, + Switch_ProGyro_Move = 221, + Switch_ProGyro_Pitch = 222, + Switch_ProGyro_Yaw = 223, + Switch_ProGyro_Roll = 224, + Switch_DPad_Move = 225, Switch_Reserved1 = 226, Switch_Reserved2 = 227, Switch_Reserved3 = 228, @@ -263,7 +263,466 @@ pub enum MistInputActionOrigin { Switch_Reserved8 = 233, Switch_Reserved9 = 234, Switch_Reserved10 = 235, - Count = 258, + Switch_RightGyro_Move = 236, + Switch_RightGyro_Pitch = 237, + Switch_RightGyro_Yaw = 238, + Switch_RightGyro_Roll = 239, + Switch_LeftGyro_Move = 240, + Switch_LeftGyro_Pitch = 241, + Switch_LeftGyro_Yaw = 242, + Switch_LeftGyro_Roll = 243, + Switch_LeftGrip_Lower = 244, + Switch_LeftGrip_Upper = 245, + Switch_RightGrip_Lower = 246, + Switch_RightGrip_Upper = 247, + Switch_JoyConButton_N = 248, + Switch_JoyConButton_E = 249, + Switch_JoyConButton_S = 250, + Switch_JoyConButton_W = 251, + Switch_Reserved15 = 252, + Switch_Reserved16 = 253, + Switch_Reserved17 = 254, + Switch_Reserved18 = 255, + Switch_Reserved19 = 256, + Switch_Reserved20 = 257, + PS5_X = 258, + PS5_Circle = 259, + PS5_Triangle = 260, + PS5_Square = 261, + PS5_LeftBumper = 262, + PS5_RightBumper = 263, + PS5_Option = 264, + PS5_Create = 265, + PS5_Mute = 266, + PS5_LeftPad_Touch = 267, + PS5_LeftPad_Swipe = 268, + PS5_LeftPad_Click = 269, + PS5_LeftPad_DPadNorth = 270, + PS5_LeftPad_DPadSouth = 271, + PS5_LeftPad_DPadWest = 272, + PS5_LeftPad_DPadEast = 273, + PS5_RightPad_Touch = 274, + PS5_RightPad_Swipe = 275, + PS5_RightPad_Click = 276, + PS5_RightPad_DPadNorth = 277, + PS5_RightPad_DPadSouth = 278, + PS5_RightPad_DPadWest = 279, + PS5_RightPad_DPadEast = 280, + PS5_CenterPad_Touch = 281, + PS5_CenterPad_Swipe = 282, + PS5_CenterPad_Click = 283, + PS5_CenterPad_DPadNorth = 284, + PS5_CenterPad_DPadSouth = 285, + PS5_CenterPad_DPadWest = 286, + PS5_CenterPad_DPadEast = 287, + PS5_LeftTrigger_Pull = 288, + PS5_LeftTrigger_Click = 289, + PS5_RightTrigger_Pull = 290, + PS5_RightTrigger_Click = 291, + PS5_LeftStick_Move = 292, + PS5_LeftStick_Click = 293, + PS5_LeftStick_DPadNorth = 294, + PS5_LeftStick_DPadSouth = 295, + PS5_LeftStick_DPadWest = 296, + PS5_LeftStick_DPadEast = 297, + PS5_RightStick_Move = 298, + PS5_RightStick_Click = 299, + PS5_RightStick_DPadNorth = 300, + PS5_RightStick_DPadSouth = 301, + PS5_RightStick_DPadWest = 302, + PS5_RightStick_DPadEast = 303, + PS5_DPad_North = 304, + PS5_DPad_South = 305, + PS5_DPad_West = 306, + PS5_DPad_East = 307, + PS5_Gyro_Move = 308, + PS5_Gyro_Pitch = 309, + PS5_Gyro_Yaw = 310, + PS5_Gyro_Roll = 311, + PS5_DPad_Move = 312, + PS5_LeftGrip = 313, + PS5_RightGrip = 314, + PS5_LeftFn = 315, + PS5_RightFn = 316, + PS5_Reserved5 = 317, + PS5_Reserved6 = 318, + PS5_Reserved7 = 319, + PS5_Reserved8 = 320, + PS5_Reserved9 = 321, + PS5_Reserved10 = 322, + PS5_Reserved11 = 323, + PS5_Reserved12 = 324, + PS5_Reserved13 = 325, + PS5_Reserved14 = 326, + PS5_Reserved15 = 327, + PS5_Reserved16 = 328, + PS5_Reserved17 = 329, + PS5_Reserved18 = 330, + PS5_Reserved19 = 331, + PS5_Reserved20 = 332, + SteamDeck_A = 333, + SteamDeck_B = 334, + SteamDeck_X = 335, + SteamDeck_Y = 336, + SteamDeck_L1 = 337, + SteamDeck_R1 = 338, + SteamDeck_Menu = 339, + SteamDeck_View = 340, + SteamDeck_LeftPad_Touch = 341, + SteamDeck_LeftPad_Swipe = 342, + SteamDeck_LeftPad_Click = 343, + SteamDeck_LeftPad_DPadNorth = 344, + SteamDeck_LeftPad_DPadSouth = 345, + SteamDeck_LeftPad_DPadWest = 346, + SteamDeck_LeftPad_DPadEast = 347, + SteamDeck_RightPad_Touch = 348, + SteamDeck_RightPad_Swipe = 349, + SteamDeck_RightPad_Click = 350, + SteamDeck_RightPad_DPadNorth = 351, + SteamDeck_RightPad_DPadSouth = 352, + SteamDeck_RightPad_DPadWest = 353, + SteamDeck_RightPad_DPadEast = 354, + SteamDeck_L2_SoftPull = 355, + SteamDeck_L2 = 356, + SteamDeck_R2_SoftPull = 357, + SteamDeck_R2 = 358, + SteamDeck_LeftStick_Move = 359, + SteamDeck_L3 = 360, + SteamDeck_LeftStick_DPadNorth = 361, + SteamDeck_LeftStick_DPadSouth = 362, + SteamDeck_LeftStick_DPadWest = 363, + SteamDeck_LeftStick_DPadEast = 364, + SteamDeck_LeftStick_Touch = 365, + SteamDeck_RightStick_Move = 366, + SteamDeck_R3 = 367, + SteamDeck_RightStick_DPadNorth = 368, + SteamDeck_RightStick_DPadSouth = 369, + SteamDeck_RightStick_DPadWest = 370, + SteamDeck_RightStick_DPadEast = 371, + SteamDeck_RightStick_Touch = 372, + SteamDeck_L4 = 373, + SteamDeck_R4 = 374, + SteamDeck_L5 = 375, + SteamDeck_R5 = 376, + SteamDeck_DPad_Move = 377, + SteamDeck_DPad_North = 378, + SteamDeck_DPad_South = 379, + SteamDeck_DPad_West = 380, + SteamDeck_DPad_East = 381, + SteamDeck_Gyro_Move = 382, + SteamDeck_Gyro_Pitch = 383, + SteamDeck_Gyro_Yaw = 384, + SteamDeck_Gyro_Roll = 385, + SteamDeck_Reserved1 = 386, + SteamDeck_Reserved2 = 387, + SteamDeck_Reserved3 = 388, + SteamDeck_Reserved4 = 389, + SteamDeck_Reserved5 = 390, + SteamDeck_Reserved6 = 391, + SteamDeck_Reserved7 = 392, + SteamDeck_Reserved8 = 393, + SteamDeck_Reserved9 = 394, + SteamDeck_Reserved10 = 395, + SteamDeck_Reserved11 = 396, + SteamDeck_Reserved12 = 397, + SteamDeck_Reserved13 = 398, + SteamDeck_Reserved14 = 399, + SteamDeck_Reserved15 = 400, + SteamDeck_Reserved16 = 401, + SteamDeck_Reserved17 = 402, + SteamDeck_Reserved18 = 403, + SteamDeck_Reserved19 = 404, + SteamDeck_Reserved20 = 405, + Horipad_M1 = 406, + Horipad_M2 = 407, + Horipad_L4 = 408, + Horipad_R4 = 409, + LenovoLegionGo_A = 410, + LenovoLegionGo_B = 411, + LenovoLegionGo_X = 412, + LenovoLegionGo_Y = 413, + LenovoLegionGo_LB = 414, + LenovoLegionGo_RB = 415, + LenovoLegionGo_Menu = 416, + LenovoLegionGo_View = 417, + LenovoLegionGo_LeftPad_Touch = 418, + LenovoLegionGo_LeftPad_Swipe = 419, + LenovoLegionGo_LeftPad_Click = 420, + LenovoLegionGo_LeftPad_DPadNorth = 421, + LenovoLegionGo_LeftPad_DPadSouth = 422, + LenovoLegionGo_LeftPad_DPadWest = 423, + LenovoLegionGo_LeftPad_DPadEast = 424, + LenovoLegionGo_RightPad_Touch = 425, + LenovoLegionGo_RightPad_Swipe = 426, + LenovoLegionGo_RightPad_Click = 427, + LenovoLegionGo_RightPad_DPadNorth = 428, + LenovoLegionGo_RightPad_DPadSouth = 429, + LenovoLegionGo_RightPad_DPadWest = 430, + LenovoLegionGo_RightPad_DPadEast = 431, + LenovoLegionGo_LT_SoftPull = 432, + LenovoLegionGo_LT = 433, + LenovoLegionGo_RT_SoftPull = 434, + LenovoLegionGo_RT = 435, + LenovoLegionGo_LeftStick_Move = 436, + LenovoLegionGo_LS = 437, + LenovoLegionGo_LeftStick_DPadNorth = 438, + LenovoLegionGo_LeftStick_DPadSouth = 439, + LenovoLegionGo_LeftStick_DPadWest = 440, + LenovoLegionGo_LeftStick_DPadEast = 441, + LenovoLegionGo_RightStick_Move = 442, + LenovoLegionGo_RS = 443, + LenovoLegionGo_RightStick_DPadNorth = 444, + LenovoLegionGo_RightStick_DPadSouth = 445, + LenovoLegionGo_RightStick_DPadWest = 446, + LenovoLegionGo_RightStick_DPadEast = 447, + LenovoLegionGo_Y1 = 448, + LenovoLegionGo_Y2 = 449, + LenovoLegionGo_DPad_Move = 450, + LenovoLegionGo_DPad_North = 451, + LenovoLegionGo_DPad_South = 452, + LenovoLegionGo_DPad_West = 453, + LenovoLegionGo_DPad_East = 454, + LenovoLegionGo_Gyro_Move = 455, + LenovoLegionGo_Gyro_Pitch = 456, + LenovoLegionGo_Gyro_Yaw = 457, + LenovoLegionGo_Gyro_Roll = 458, + LenovoLegionGo_Reserved1 = 459, + LenovoLegionGo_Reserved2 = 460, + LenovoLegionGo_Reserved3 = 461, + LenovoLegionGo_Reserved4 = 462, + LenovoLegionGo_Reserved5 = 463, + LenovoLegionGo_Reserved6 = 464, + LenovoLegionGo_Reserved7 = 465, + LenovoLegionGo_Reserved8 = 466, + LenovoLegionGo_Reserved9 = 467, + LenovoLegionGo_Reserved10 = 468, + LenovoLegionGo_Reserved11 = 469, + LenovoLegionGo_Reserved12 = 470, + LenovoLegionGo_Reserved13 = 471, + LenovoLegionGo_Reserved14 = 472, + LenovoLegionGo_Reserved15 = 473, + LenovoLegionGo_Reserved16 = 474, + LenovoLegionGo_Reserved17 = 475, + LenovoLegionGo_Reserved18 = 476, + LenovoLegionGo_Reserved19 = 477, + LenovoLegionGo_Reserved20 = 478, + Generic_L4 = 479, + Generic_R4 = 480, + Generic_L5 = 481, + Generic_R5 = 482, + Generic_PL = 483, + Generic_PR = 484, + Generic_C = 485, + Generic_Z = 486, + Generic_MISC1 = 487, + Generic_MISC2 = 488, + Generic_MISC3 = 489, + Generic_MISC4 = 490, + Generic_MISC5 = 491, + Generic_MISC6 = 492, + Generic_MISC7 = 493, + Generic_MISC8 = 494, + Switch2_A = 495, + Switch2_B = 496, + Switch2_X = 497, + Switch2_Y = 498, + Switch2_LeftBumper = 499, + Switch2_RightBumper = 500, + Switch2_Plus = 501, + Switch2_Minus = 502, + Switch2_Capture = 503, + Switch2_LeftTrigger_Pull = 504, + Switch2_LeftTrigger_Click = 505, + Switch2_RightTrigger_Pull = 506, + Switch2_RightTrigger_Click = 507, + Switch2_LeftStick_Move = 508, + Switch2_LeftStick_Click = 509, + Switch2_LeftStick_DPadNorth = 510, + Switch2_LeftStick_DPadSouth = 511, + Switch2_LeftStick_DPadWest = 512, + Switch2_LeftStick_DPadEast = 513, + Switch2_RightStick_Move = 514, + Switch2_RightStick_Click = 515, + Switch2_RightStick_DPadNorth = 516, + Switch2_RightStick_DPadSouth = 517, + Switch2_RightStick_DPadWest = 518, + Switch2_RightStick_DPadEast = 519, + Switch2_DPad_Move = 520, + Switch2_DPad_North = 521, + Switch2_DPad_South = 522, + Switch2_DPad_West = 523, + Switch2_DPad_East = 524, + Switch2_ProGyro_Move = 525, + Switch2_ProGyro_Pitch = 526, + Switch2_ProGyro_Yaw = 527, + Switch2_ProGyro_Roll = 528, + Switch2_GL = 529, + Switch2_GR = 530, + Switch2_C = 531, + Switch2_Reserved1 = 532, + Switch2_Reserved2 = 533, + Switch2_Reserved3 = 534, + Switch2_Reserved4 = 535, + Switch2_Reserved5 = 536, + Switch2_Reserved6 = 537, + Switch2_Reserved7 = 538, + Switch2_Reserved8 = 539, + Switch2_Reserved9 = 540, + Switch2_Reserved10 = 541, + SteamController2026_A = 542, + SteamController2026_B = 543, + SteamController2026_X = 544, + SteamController2026_Y = 545, + SteamController2026_L1 = 546, + SteamController2026_R1 = 547, + SteamController2026_Menu = 548, + SteamController2026_View = 549, + SteamController2026_LeftPad_Touch = 550, + SteamController2026_LeftPad_Swipe = 551, + SteamController2026_LeftPad_Click = 552, + SteamController2026_LeftPad_DPadNorth = 553, + SteamController2026_LeftPad_DPadSouth = 554, + SteamController2026_LeftPad_DPadWest = 555, + SteamController2026_LeftPad_DPadEast = 556, + SteamController2026_RightPad_Touch = 557, + SteamController2026_RightPad_Swipe = 558, + SteamController2026_RightPad_Click = 559, + SteamController2026_RightPad_DPadNorth = 560, + SteamController2026_RightPad_DPadSouth = 561, + SteamController2026_RightPad_DPadWest = 562, + SteamController2026_RightPad_DPadEast = 563, + SteamController2026_L2_SoftPull = 564, + SteamController2026_L2 = 565, + SteamController2026_R2_SoftPull = 566, + SteamController2026_R2 = 567, + SteamController2026_LeftStick_Move = 568, + SteamController2026_L3 = 569, + SteamController2026_LeftStick_DPadNorth = 570, + SteamController2026_LeftStick_DPadSouth = 571, + SteamController2026_LeftStick_DPadWest = 572, + SteamController2026_LeftStick_DPadEast = 573, + SteamController2026_LeftStick_Touch = 574, + SteamController2026_RightStick_Move = 575, + SteamController2026_R3 = 576, + SteamController2026_RightStick_DPadNorth = 577, + SteamController2026_RightStick_DPadSouth = 578, + SteamController2026_RightStick_DPadWest = 579, + SteamController2026_RightStick_DPadEast = 580, + SteamController2026_RightStick_Touch = 581, + SteamController2026_L4 = 582, + SteamController2026_R4 = 583, + SteamController2026_L5 = 584, + SteamController2026_R5 = 585, + SteamController2026_DPad_Move = 586, + SteamController2026_DPad_North = 587, + SteamController2026_DPad_South = 588, + SteamController2026_DPad_West = 589, + SteamController2026_DPad_East = 590, + SteamController2026_Gyro_Move = 591, + SteamController2026_Gyro_Pitch = 592, + SteamController2026_Gyro_Yaw = 593, + SteamController2026_Gyro_Roll = 594, + SteamController2026_LGrip = 595, + SteamController2026_RGrip = 596, + SteamController2026_Reserved1 = 597, + SteamController2026_Reserved2 = 598, + SteamController2026_Reserved3 = 599, + SteamController2026_Reserved4 = 600, + SteamController2026_Reserved5 = 601, + SteamController2026_Reserved6 = 602, + SteamController2026_Reserved7 = 603, + SteamController2026_Reserved8 = 604, + SteamController2026_Reserved9 = 605, + SteamController2026_Reserved10 = 606, + SteamController2026_Reserved11 = 607, + SteamController2026_Reserved12 = 608, + SteamController2026_Reserved13 = 609, + SteamController2026_Reserved14 = 610, + SteamController2026_Reserved15 = 611, + SteamController2026_Reserved16 = 612, + SteamController2026_Reserved17 = 613, + SteamController2026_Reserved18 = 614, + SteamController2026_Reserved19 = 615, + SteamController2026_Reserved20 = 616, + SteamFrameController_A_Click = 617, + SteamFrameController_A_Touch = 618, + SteamFrameController_B_Click = 619, + SteamFrameController_B_Touch = 620, + SteamFrameController_X_Click = 621, + SteamFrameController_X_Touch = 622, + SteamFrameController_Y_Click = 623, + SteamFrameController_Y_Touch = 624, + SteamFrameController_LeftTrigger_Pull = 625, + SteamFrameController_LeftTrigger_Click = 626, + SteamFrameController_LeftTrigger_Touch = 627, + SteamFrameController_RightTrigger_Pull = 628, + SteamFrameController_RightTrigger_Click = 629, + SteamFrameController_RightTrigger_Touch = 630, + SteamFrameController_Menu_Click = 631, + SteamFrameController_Menu_Touch = 632, + SteamFrameController_View_Click = 633, + SteamFrameController_View_Touch = 634, + SteamFrameController_LeftBumper_Click = 635, + SteamFrameController_LeftBumper_Touch = 636, + SteamFrameController_RightBumper_Click = 637, + SteamFrameController_RightBumper_Touch = 638, + SteamFrameController_LeftStick_Move = 639, + SteamFrameController_LeftStick_Click = 640, + SteamFrameController_LeftStick_DPadNorth = 641, + SteamFrameController_LeftStick_DPadSouth = 642, + SteamFrameController_LeftStick_DPadWest = 643, + SteamFrameController_LeftStick_DPadEast = 644, + SteamFrameController_LeftStick_Touch = 645, + SteamFrameController_RightStick_Move = 646, + SteamFrameController_RightStick_Click = 647, + SteamFrameController_RightStick_DPadNorth = 648, + SteamFrameController_RightStick_DPadSouth = 649, + SteamFrameController_RightStick_DPadWest = 650, + SteamFrameController_RightStick_DPadEast = 651, + SteamFrameController_RightStick_Touch = 652, + SteamFrameController_DPad_Move = 653, + SteamFrameController_DPad_North = 654, + SteamFrameController_DPad_South = 655, + SteamFrameController_DPad_West = 656, + SteamFrameController_DPad_East = 657, + SteamFrameController_DPad_Touch = 658, + SteamFrameController_LeftGyro_Move = 659, + SteamFrameController_LeftGyro_Pitch = 660, + SteamFrameController_LeftGyro_Yaw = 661, + SteamFrameController_LeftGyro_Roll = 662, + SteamFrameController_RightGyro_Move = 663, + SteamFrameController_RightGyro_Pitch = 664, + SteamFrameController_RightGyro_Yaw = 665, + SteamFrameController_RightGyro_Roll = 666, + SteamFrameController_LeftGrip_Pull = 667, + SteamFrameController_LeftGrip_Click = 668, + SteamFrameController_LeftGrip_Touch = 669, + SteamFrameController_RightGrip_Pull = 670, + SteamFrameController_RightGrip_Click = 671, + SteamFrameController_RightGrip_Touch = 672, + SteamFrameController_LeftThumbrest_Touch = 673, + SteamFrameController_RightThumbrest_Touch = 674, + SteamFrameController_Reserved1 = 675, + SteamFrameController_Reserved2 = 676, + SteamFrameController_Reserved3 = 677, + SteamFrameController_Reserved4 = 678, + SteamFrameController_Reserved5 = 679, + SteamFrameController_Reserved6 = 680, + SteamFrameController_Reserved7 = 681, + SteamFrameController_Reserved8 = 682, + SteamFrameController_Reserved9 = 683, + SteamFrameController_Reserved10 = 684, + SteamFrameController_Reserved11 = 685, + SteamFrameController_Reserved12 = 686, + SteamFrameController_Reserved13 = 687, + SteamFrameController_Reserved14 = 688, + SteamFrameController_Reserved15 = 689, + SteamFrameController_Reserved16 = 690, + SteamFrameController_Reserved17 = 691, + SteamFrameController_Reserved18 = 692, + SteamFrameController_Reserved19 = 693, + SteamFrameController_Reserved20 = 694, + Count = 695, MaximumPossibleValue = 32767, } @@ -351,7 +810,7 @@ pub enum MistSteamInputType { SteamController = 1, XBox360Controller = 2, XBoxOneController = 3, - GenericXInput = 4, + GenericGamepad = 4, PS4Controller = 5, AppleMFiController = 6, AndroidController = 7, @@ -362,7 +821,11 @@ pub enum MistSteamInputType { PS3Controller = 12, PS5Controller = 13, SteamDeckController = 14, - Count = 15, + SteamOSHandheld = 15, + Switch2ProController = 16, + SteamController2026 = 17, + SteamFrameControllerPair = 18, + Count = 19, MaximumPossibleValue = 255, } diff --git a/steamworks-sys/Cargo.toml b/steamworks-sys/Cargo.toml index c4f1150..91c00f2 100644 --- a/steamworks-sys/Cargo.toml +++ b/steamworks-sys/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [build-dependencies] -bindgen = "0.59" +bindgen = "0.73" [features] link = [] diff --git a/steamworks-sys/build.rs b/steamworks-sys/build.rs index 1bc8cbf..6fbb796 100644 --- a/steamworks-sys/build.rs +++ b/steamworks-sys/build.rs @@ -21,6 +21,14 @@ fn main() { .unwrap(); println!("cargo:rustc-link-lib=dylib=steam_api"); } + "aarch64-unknown-linux-gnu" => { + fs::copy( + sdk_path.join("redistributable_bin/linuxarm64/libsteam_api.so"), + out_path.join("libsteam_api.so"), + ) + .unwrap(); + println!("cargo:rustc-link-lib=dylib=steam_api"); + } // macOS 64-bit "x86_64-apple-darwin" | "aarch64-apple-darwin" => { fs::copy( @@ -57,7 +65,8 @@ fn main() { "-I{}", Path::new(&sdk_path).join("public").to_string_lossy() )) - .clang_args(&["-xc++", "-std=c++11", "-stdlib=libc++"]); + .clang_args(&["-xc++", "-std=c++11", "-stdlib=libc++"]) + .opaque_type("ISteam.*"); #[cfg(unix)] {