-
Notifications
You must be signed in to change notification settings - Fork 10
/
DemulInitialDInput.h
160 lines (136 loc) · 8.55 KB
/
DemulInitialDInput.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/*This file is part of FFB Arcade Plugin GUI.
FFB Arcade Plugin GUI is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
FFB Arcade Plugin GUI is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FFB Arcade Plugin GUI.If not, see < https://www.gnu.org/licenses/>.
*/
#pragma once
#include <Windows.h>
#include "Helper.h"
namespace FFBPluginGUI {
public ref class DemulInitialDInput : Helper
{
public:
DemulInitialDInput(MetroForm^ obj1)
{
this->obj = obj1;
this->InitializeComponent();
}
private:
void InitializeComponent(void)
{
this->SuspendLayout();
this->AutoAddDevice1Selector();
this->AutoAddDevice2Selector();
this->AutoAddLongTextBox(L"FFB Dynamic Strength Adjustment", L"");
this->AutoAddShortCheckBox("EnableFFBStrengthDynamicAdjustment", L"Enable Adjustment", L"Enable to modify strength while playing");
this->AutoAddShortCheckBox("EnableFFBStrengthPersistence", L"Enable To Make Persistent", L"Enable to save adjusment permanently");
this->AutoAddShortCheckBox("EnableFFBStrengthTextToSpeech", L"Enable Text To Speech", L"Enable to hear strength via speaker");
this->AutoAddShortTrackBarBlock("StepFFBStrength", L"Step FFB Strength", 0, 100, L"Set how far strength changes each button press");
this->AutoAddLongTextBox(L"Game Options", L"");
this->AutoAddShortCheckBox("InputDeviceWheelEnable", L"Enable Input Support", L"");
this->AutoAddShortCheckBox("InputDeviceWheelReverseAxis", L"Reverse Pedal Axis", L"");
this->AutoAddShortCheckBox("InputDeviceCombinedPedals", L"Combined Pedals", L"Enable if using combined pedal axis");
this->AutoAddShortCheckBox("AutoCloseWindowError", L"Auto close PadDemul Error", L"");
this->AutoAddShortTrackBarBlock("SteeringDeadzone", L"Steering Deadzone", 0, 100, L"Set steering deadzone to set deadzone on device");
this->AutoAddShortTrackBarBlock("PedalDeadzone", L"Pedal Deadzone", 0, 100, L"Set pedal deadzone to set deadzone on device");
this->New2ColsPage();
this->AddTextBox(L"Set or remove axis/button configuration below", this->leftColX, this->minPosY, (2 * this->longWidth) + (2 * this->margin), this->textBoxHeight, L"Select Input then move or press Axis or Button");
this->leftColPosY = this->minPosY + this->textBoxOuterHeight;
this->AutoAddShortTextBox(L"Device 1 Select Inputs", L"Axis/Button for device 1, click below to set input for device 1");
this->AutoAddShortTextBox(L"Axis & Buttons", L"Axis/Button number set in FFBPlugin.ini for device 2");
this->AutoAddLongInputSelect("Axis", "InputDeviceWheelSteeringAxis", L"Steering Axis");
this->AutoAddLongInputSelect("Axis", "InputDeviceWheelAcclAxis", L"Accelerator Axis");
this->AutoAddLongInputSelect("Axis", "InputDeviceWheelBrakeAxis", L"Brake Axis");
this->AutoAddLongInputSelect("Button", "ExitButton", L"Exit Button");
this->AutoAddLongInputSelect("Button", "TestButton", L"Test Button");
this->AutoAddLongInputSelect("Button", "ServiceButton", L"Service Button");
this->AutoAddLongInputSelect("Button", "CreditButton", L"Credit Button");
this->AutoAddLongInputSelect("Button", "ViewButton", L"View Button");
this->AutoAddLongInputSelect("Button", "StartButton", L"Start Button");
this->AutoAddLongInputSelect("Button", "ShiftUp", L"Shift Up");
this->AutoAddLongInputSelect("Button", "ShiftDown", L"Shift Down");
this->AutoAddLongInputSelect("Button", "InsertRemoveCard", L"Insert or Remove Card");
this->AutoAddLongInputSelect("Button", "IncreaseFFBStrength", L"Increase FFB Strength");
this->AutoAddLongInputSelect("Button", "DecreaseFFBStrength", L"Decrease FFB Strength");
this->AutoAddLongInputSelect("Button", "ResetFFBStrength", L"Reset FFB Strength");
this->AutoAddShortComboBoxBlock(
"DpadUp",
"ExitButton|TestButton|ServiceButton|CreditButton|ViewButton|StartButton|ShiftUp|ShiftDown|InsertRemoveCard|",
L"Dpad Up",
L"Exit Button|Test Button|Service Button|Credit Button|View Button|Start Button|Shift Up|Shift Down|Insert/Remove Card|Select no input",
L"Choose what happens when you press up on dpad on device 1"
);
this->AutoAddShortComboBoxBlock(
"DpadDown",
"ExitButton|TestButton|ServiceButton|CreditButton|ViewButton|StartButton|ShiftUp|ShiftDown|InsertRemoveCard|",
L"Dpad Down",
L"Exit Button|Test Button|Service Button|Credit Button|View Button|Start Button|Shift Up|Shift Down|Insert/Remove Card|Select no input",
L"Choose what happens when you press down on dpad on device 1"
);
this->AutoAddShortComboBoxBlock(
"DpadLeft",
"ExitButton|TestButton|ServiceButton|CreditButton|ViewButton|StartButton|ShiftUp|ShiftDown|InsertRemoveCard|",
L"Dpad Left",
L"Exit Button|Test Button|Service Button|Credit Button|View Button|Start Button|Shift Up|Shift Down|Insert/Remove Card|Select no input",
L"Choose what happens when you press left on dpad on device 1"
);
this->AutoAddShortComboBoxBlock(
"DpadRight",
"ExitButton|TestButton|ServiceButton|CreditButton|ViewButton|StartButton|ShiftUp|ShiftDown|InsertRemoveCard|",
L"Dpad Right",
L"Exit Button|Test Button|Service Button|Credit Button|View Button|Start Button|Shift Up|Shift Down|Insert/Remove Card|Select no input",
L"Choose what happens when you press right on dpad on device 1"
);
this->New2ColsPage();
this->leftColPosY = this->minPosY + this->textBoxOuterHeight;
this->AutoAddShortTextBox(L"Device 2 Select Inputs", L"Button names for device 2, click below to set input for device 2");
this->AutoAddShortTextBox(L"Buttons", L"Button number set in FFBPlugin.ini for device 2");
this->leftColPosY += 3 * this->inputSelectOuterHeight;
this->AutoAddLongInputSelect("Button", "ExitButtonDevice2", L"Exit Button");
this->AutoAddLongInputSelect("Button", "TestButtonDevice2", L"Test Button");
this->AutoAddLongInputSelect("Button", "ServiceButtonDevice2", L"Service Button");
this->AutoAddLongInputSelect("Button", "CreditButtonDevice2", L"Credit Button");
this->AutoAddLongInputSelect("Button", "ViewButtonDevice2", L"View Button");
this->AutoAddLongInputSelect("Button", "StartButtonDevice2", L"Start Button");
this->AutoAddLongInputSelect("Button", "ShiftUpDevice2", L"Shift Up");
this->AutoAddLongInputSelect("Button", "ShiftDownDevice2", L"Shift Down");
this->AutoAddLongInputSelect("Button", "InsertRemoveCardDevice2", L"Insert or Remove Card");
this->AutoAddShortComboBoxBlock(
"DpadUpDevice2",
"ExitButtonDevice2|TestButtonDevice2|ServiceButtonDevice2|CreditButtonDevice2|ViewButtonDevice2|StartButtonDevice2|ShiftUpDevice2|ShiftDownDevice2|InsertRemoveCardDevice2|",
L"Dpad Up",
L"Exit Button|Test Button|Service Button|Credit Button|View Button|Start Button|Shift Up|Shift Down|Insert/Remove Card|Select no input",
L"Choose what happens when you press up on dpad on device 2"
);
this->AutoAddShortComboBoxBlock(
"DpadDownDevice2",
"ExitButtonDevice2|TestButtonDevice2|ServiceButtonDevice2|CreditButtonDevice2|ViewButtonDevice2|StartButtonDevice2|ShiftUpDevice2|ShiftDownDevice2|InsertRemoveCardDevice2|",
L"Dpad Down",
L"Exit Button|Test Button|Service Button|Credit Button|View Button|Start Button|Shift Up|Shift Down|Insert/Remove Card|Select no input",
L"Choose what happens when you press down on dpad on device 2"
);
this->AutoAddShortComboBoxBlock(
"DpadLeftDevice2",
"ExitButtonDevice2|TestButtonDevice2|ServiceButtonDevice2|CreditButtonDevice2|ViewButtonDevice2|StartButtonDevice2|ShiftUpDevice2|ShiftDownDevice2|InsertRemoveCardDevice2|",
L"Dpad Left",
L"Exit Button|Test Button|Service Button|Credit Button|View Button|Start Button|Shift Up|Shift Down|Insert/Remove Card|Select no input",
L"Choose what happens when you press left on dpad on device 2"
);
this->AutoAddShortComboBoxBlock(
"DpadRightDevice2",
"ExitButtonDevice2|TestButtonDevice2|ServiceButtonDevice2|CreditButtonDevice2|ViewButtonDevice2|StartButtonDevice2|ShiftUpDevice2|ShiftDownDevice2|InsertRemoveCardDevice2|",
L"Dpad Right",
L"Exit Button|Test Button|Service Button|Credit Button|View Button|Start Button|Shift Up|Shift Down|Insert/Remove Card|Select no input",
L"Choose what happens when you press right on dpad on device 2"
);
this->Init();
}
};
}