From 8e13e7e2874adc8982e16d1d2ed2e28d7480b45f Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Sun, 19 May 2024 16:05:58 +0800 Subject: +1.57 --- .../Decompile/Rewired/GamepadTemplate.cs | 149 +++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 Thronefall_1_57/Decompile/Rewired/GamepadTemplate.cs (limited to 'Thronefall_1_57/Decompile/Rewired/GamepadTemplate.cs') diff --git a/Thronefall_1_57/Decompile/Rewired/GamepadTemplate.cs b/Thronefall_1_57/Decompile/Rewired/GamepadTemplate.cs new file mode 100644 index 0000000..2db2fba --- /dev/null +++ b/Thronefall_1_57/Decompile/Rewired/GamepadTemplate.cs @@ -0,0 +1,149 @@ +using System; + +namespace Rewired; + +public sealed class GamepadTemplate : ControllerTemplate, IGamepadTemplate, IControllerTemplate +{ + public static readonly Guid typeGuid = new Guid("83b427e4-086f-47f3-bb06-be266abd1ca5"); + + public const int elementId_leftStickX = 0; + + public const int elementId_leftStickY = 1; + + public const int elementId_rightStickX = 2; + + public const int elementId_rightStickY = 3; + + public const int elementId_actionBottomRow1 = 4; + + public const int elementId_a = 4; + + public const int elementId_actionBottomRow2 = 5; + + public const int elementId_b = 5; + + public const int elementId_actionBottomRow3 = 6; + + public const int elementId_c = 6; + + public const int elementId_actionTopRow1 = 7; + + public const int elementId_x = 7; + + public const int elementId_actionTopRow2 = 8; + + public const int elementId_y = 8; + + public const int elementId_actionTopRow3 = 9; + + public const int elementId_z = 9; + + public const int elementId_leftShoulder1 = 10; + + public const int elementId_leftBumper = 10; + + public const int elementId_leftShoulder2 = 11; + + public const int elementId_leftTrigger = 11; + + public const int elementId_rightShoulder1 = 12; + + public const int elementId_rightBumper = 12; + + public const int elementId_rightShoulder2 = 13; + + public const int elementId_rightTrigger = 13; + + public const int elementId_center1 = 14; + + public const int elementId_back = 14; + + public const int elementId_center2 = 15; + + public const int elementId_start = 15; + + public const int elementId_center3 = 16; + + public const int elementId_guide = 16; + + public const int elementId_leftStickButton = 17; + + public const int elementId_rightStickButton = 18; + + public const int elementId_dPadUp = 19; + + public const int elementId_dPadRight = 20; + + public const int elementId_dPadDown = 21; + + public const int elementId_dPadLeft = 22; + + public const int elementId_leftStick = 23; + + public const int elementId_rightStick = 24; + + public const int elementId_dPad = 25; + + IControllerTemplateButton IGamepadTemplate.actionBottomRow1 => GetElement(4); + + IControllerTemplateButton IGamepadTemplate.a => GetElement(4); + + IControllerTemplateButton IGamepadTemplate.actionBottomRow2 => GetElement(5); + + IControllerTemplateButton IGamepadTemplate.b => GetElement(5); + + IControllerTemplateButton IGamepadTemplate.actionBottomRow3 => GetElement(6); + + IControllerTemplateButton IGamepadTemplate.c => GetElement(6); + + IControllerTemplateButton IGamepadTemplate.actionTopRow1 => GetElement(7); + + IControllerTemplateButton IGamepadTemplate.x => GetElement(7); + + IControllerTemplateButton IGamepadTemplate.actionTopRow2 => GetElement(8); + + IControllerTemplateButton IGamepadTemplate.y => GetElement(8); + + IControllerTemplateButton IGamepadTemplate.actionTopRow3 => GetElement(9); + + IControllerTemplateButton IGamepadTemplate.z => GetElement(9); + + IControllerTemplateButton IGamepadTemplate.leftShoulder1 => GetElement(10); + + IControllerTemplateButton IGamepadTemplate.leftBumper => GetElement(10); + + IControllerTemplateAxis IGamepadTemplate.leftShoulder2 => GetElement(11); + + IControllerTemplateAxis IGamepadTemplate.leftTrigger => GetElement(11); + + IControllerTemplateButton IGamepadTemplate.rightShoulder1 => GetElement(12); + + IControllerTemplateButton IGamepadTemplate.rightBumper => GetElement(12); + + IControllerTemplateAxis IGamepadTemplate.rightShoulder2 => GetElement(13); + + IControllerTemplateAxis IGamepadTemplate.rightTrigger => GetElement(13); + + IControllerTemplateButton IGamepadTemplate.center1 => GetElement(14); + + IControllerTemplateButton IGamepadTemplate.back => GetElement(14); + + IControllerTemplateButton IGamepadTemplate.center2 => GetElement(15); + + IControllerTemplateButton IGamepadTemplate.start => GetElement(15); + + IControllerTemplateButton IGamepadTemplate.center3 => GetElement(16); + + IControllerTemplateButton IGamepadTemplate.guide => GetElement(16); + + IControllerTemplateThumbStick IGamepadTemplate.leftStick => GetElement(23); + + IControllerTemplateThumbStick IGamepadTemplate.rightStick => GetElement(24); + + IControllerTemplateDPad IGamepadTemplate.dPad => GetElement(25); + + public GamepadTemplate(object payload) + : base(payload) + { + } +} -- cgit v1.1-26-g67d0