summaryrefslogtreecommitdiff
path: root/Thronefall_1_57/Decompile/Rewired/RacingWheelTemplate.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2024-05-19 16:05:58 +0800
committerchai <215380520@qq.com>2024-05-19 16:05:58 +0800
commit8e13e7e2874adc8982e16d1d2ed2e28d7480b45f (patch)
tree63ef85c460288891f5a593d69afeca16cba050b3 /Thronefall_1_57/Decompile/Rewired/RacingWheelTemplate.cs
parentc5f145786f4c6d2fe4bea831dfc16e52228920a5 (diff)
+1.57
Diffstat (limited to 'Thronefall_1_57/Decompile/Rewired/RacingWheelTemplate.cs')
-rw-r--r--Thronefall_1_57/Decompile/Rewired/RacingWheelTemplate.cs189
1 files changed, 189 insertions, 0 deletions
diff --git a/Thronefall_1_57/Decompile/Rewired/RacingWheelTemplate.cs b/Thronefall_1_57/Decompile/Rewired/RacingWheelTemplate.cs
new file mode 100644
index 0000000..85fb3c3
--- /dev/null
+++ b/Thronefall_1_57/Decompile/Rewired/RacingWheelTemplate.cs
@@ -0,0 +1,189 @@
+using System;
+
+namespace Rewired;
+
+public sealed class RacingWheelTemplate : ControllerTemplate, IRacingWheelTemplate, IControllerTemplate
+{
+ public static readonly Guid typeGuid = new Guid("104e31d8-9115-4dd5-a398-2e54d35e6c83");
+
+ public const int elementId_wheel = 0;
+
+ public const int elementId_accelerator = 1;
+
+ public const int elementId_brake = 2;
+
+ public const int elementId_clutch = 3;
+
+ public const int elementId_shiftDown = 4;
+
+ public const int elementId_shiftUp = 5;
+
+ public const int elementId_wheelButton1 = 6;
+
+ public const int elementId_wheelButton2 = 7;
+
+ public const int elementId_wheelButton3 = 8;
+
+ public const int elementId_wheelButton4 = 9;
+
+ public const int elementId_wheelButton5 = 10;
+
+ public const int elementId_wheelButton6 = 11;
+
+ public const int elementId_wheelButton7 = 12;
+
+ public const int elementId_wheelButton8 = 13;
+
+ public const int elementId_wheelButton9 = 14;
+
+ public const int elementId_wheelButton10 = 15;
+
+ public const int elementId_consoleButton1 = 16;
+
+ public const int elementId_consoleButton2 = 17;
+
+ public const int elementId_consoleButton3 = 18;
+
+ public const int elementId_consoleButton4 = 19;
+
+ public const int elementId_consoleButton5 = 20;
+
+ public const int elementId_consoleButton6 = 21;
+
+ public const int elementId_consoleButton7 = 22;
+
+ public const int elementId_consoleButton8 = 23;
+
+ public const int elementId_consoleButton9 = 24;
+
+ public const int elementId_consoleButton10 = 25;
+
+ public const int elementId_shifter1 = 26;
+
+ public const int elementId_shifter2 = 27;
+
+ public const int elementId_shifter3 = 28;
+
+ public const int elementId_shifter4 = 29;
+
+ public const int elementId_shifter5 = 30;
+
+ public const int elementId_shifter6 = 31;
+
+ public const int elementId_shifter7 = 32;
+
+ public const int elementId_shifter8 = 33;
+
+ public const int elementId_shifter9 = 34;
+
+ public const int elementId_shifter10 = 35;
+
+ public const int elementId_reverseGear = 44;
+
+ public const int elementId_select = 36;
+
+ public const int elementId_start = 37;
+
+ public const int elementId_systemButton = 38;
+
+ public const int elementId_horn = 43;
+
+ public const int elementId_dPadUp = 39;
+
+ public const int elementId_dPadRight = 40;
+
+ public const int elementId_dPadDown = 41;
+
+ public const int elementId_dPadLeft = 42;
+
+ public const int elementId_dPad = 45;
+
+ IControllerTemplateAxis IRacingWheelTemplate.wheel => GetElement<IControllerTemplateAxis>(0);
+
+ IControllerTemplateAxis IRacingWheelTemplate.accelerator => GetElement<IControllerTemplateAxis>(1);
+
+ IControllerTemplateAxis IRacingWheelTemplate.brake => GetElement<IControllerTemplateAxis>(2);
+
+ IControllerTemplateAxis IRacingWheelTemplate.clutch => GetElement<IControllerTemplateAxis>(3);
+
+ IControllerTemplateButton IRacingWheelTemplate.shiftDown => GetElement<IControllerTemplateButton>(4);
+
+ IControllerTemplateButton IRacingWheelTemplate.shiftUp => GetElement<IControllerTemplateButton>(5);
+
+ IControllerTemplateButton IRacingWheelTemplate.wheelButton1 => GetElement<IControllerTemplateButton>(6);
+
+ IControllerTemplateButton IRacingWheelTemplate.wheelButton2 => GetElement<IControllerTemplateButton>(7);
+
+ IControllerTemplateButton IRacingWheelTemplate.wheelButton3 => GetElement<IControllerTemplateButton>(8);
+
+ IControllerTemplateButton IRacingWheelTemplate.wheelButton4 => GetElement<IControllerTemplateButton>(9);
+
+ IControllerTemplateButton IRacingWheelTemplate.wheelButton5 => GetElement<IControllerTemplateButton>(10);
+
+ IControllerTemplateButton IRacingWheelTemplate.wheelButton6 => GetElement<IControllerTemplateButton>(11);
+
+ IControllerTemplateButton IRacingWheelTemplate.wheelButton7 => GetElement<IControllerTemplateButton>(12);
+
+ IControllerTemplateButton IRacingWheelTemplate.wheelButton8 => GetElement<IControllerTemplateButton>(13);
+
+ IControllerTemplateButton IRacingWheelTemplate.wheelButton9 => GetElement<IControllerTemplateButton>(14);
+
+ IControllerTemplateButton IRacingWheelTemplate.wheelButton10 => GetElement<IControllerTemplateButton>(15);
+
+ IControllerTemplateButton IRacingWheelTemplate.consoleButton1 => GetElement<IControllerTemplateButton>(16);
+
+ IControllerTemplateButton IRacingWheelTemplate.consoleButton2 => GetElement<IControllerTemplateButton>(17);
+
+ IControllerTemplateButton IRacingWheelTemplate.consoleButton3 => GetElement<IControllerTemplateButton>(18);
+
+ IControllerTemplateButton IRacingWheelTemplate.consoleButton4 => GetElement<IControllerTemplateButton>(19);
+
+ IControllerTemplateButton IRacingWheelTemplate.consoleButton5 => GetElement<IControllerTemplateButton>(20);
+
+ IControllerTemplateButton IRacingWheelTemplate.consoleButton6 => GetElement<IControllerTemplateButton>(21);
+
+ IControllerTemplateButton IRacingWheelTemplate.consoleButton7 => GetElement<IControllerTemplateButton>(22);
+
+ IControllerTemplateButton IRacingWheelTemplate.consoleButton8 => GetElement<IControllerTemplateButton>(23);
+
+ IControllerTemplateButton IRacingWheelTemplate.consoleButton9 => GetElement<IControllerTemplateButton>(24);
+
+ IControllerTemplateButton IRacingWheelTemplate.consoleButton10 => GetElement<IControllerTemplateButton>(25);
+
+ IControllerTemplateButton IRacingWheelTemplate.shifter1 => GetElement<IControllerTemplateButton>(26);
+
+ IControllerTemplateButton IRacingWheelTemplate.shifter2 => GetElement<IControllerTemplateButton>(27);
+
+ IControllerTemplateButton IRacingWheelTemplate.shifter3 => GetElement<IControllerTemplateButton>(28);
+
+ IControllerTemplateButton IRacingWheelTemplate.shifter4 => GetElement<IControllerTemplateButton>(29);
+
+ IControllerTemplateButton IRacingWheelTemplate.shifter5 => GetElement<IControllerTemplateButton>(30);
+
+ IControllerTemplateButton IRacingWheelTemplate.shifter6 => GetElement<IControllerTemplateButton>(31);
+
+ IControllerTemplateButton IRacingWheelTemplate.shifter7 => GetElement<IControllerTemplateButton>(32);
+
+ IControllerTemplateButton IRacingWheelTemplate.shifter8 => GetElement<IControllerTemplateButton>(33);
+
+ IControllerTemplateButton IRacingWheelTemplate.shifter9 => GetElement<IControllerTemplateButton>(34);
+
+ IControllerTemplateButton IRacingWheelTemplate.shifter10 => GetElement<IControllerTemplateButton>(35);
+
+ IControllerTemplateButton IRacingWheelTemplate.reverseGear => GetElement<IControllerTemplateButton>(44);
+
+ IControllerTemplateButton IRacingWheelTemplate.select => GetElement<IControllerTemplateButton>(36);
+
+ IControllerTemplateButton IRacingWheelTemplate.start => GetElement<IControllerTemplateButton>(37);
+
+ IControllerTemplateButton IRacingWheelTemplate.systemButton => GetElement<IControllerTemplateButton>(38);
+
+ IControllerTemplateButton IRacingWheelTemplate.horn => GetElement<IControllerTemplateButton>(43);
+
+ IControllerTemplateDPad IRacingWheelTemplate.dPad => GetElement<IControllerTemplateDPad>(45);
+
+ public RacingWheelTemplate(object payload)
+ : base(payload)
+ {
+ }
+}