32 static bool toggle0 =
false;
33 static bool toggle1 =
false;
36 static bool toggle4 =
false;
38 static bool toggle10 =
false;
39 static bool toggle11 =
false;
46 if (buttonState==
true)
50 ui.radioBtnJoy0->setChecked(toggle0);
57 ui.radioBtnJoy1->setChecked(toggle1);
60 ui.radioBtnJoy2->setChecked(buttonState);
63 ui.radioBtnJoy3->setChecked(buttonState);
66 if (buttonState==
true)
70 ui.radioBtnJoy4->setChecked(toggle4);
73 ui.radioBtnJoy5->setChecked(buttonState);
80 ui.radioBtnJoy10->setChecked(toggle10);
83 if (buttonState==
true)
87 ui.radioBtnJoy11->setChecked(toggle11);
98 ui.radioBtnJoy4Left->setChecked(
false);
99 ui.radioBtnJoy4Right->setChecked(
false);
100 ui.radioBtnJoy5Up->setChecked(
false);
101 ui.radioBtnJoy5Down->setChecked(
false);
104 ui.radioBtnJoy4Left->setChecked(
false);
105 ui.radioBtnJoy4Right->setChecked(
false);
106 ui.radioBtnJoy5Up->setChecked(
true);
107 ui.radioBtnJoy5Down->setChecked(
false);
110 ui.radioBtnJoy4Left->setChecked(
false);
111 ui.radioBtnJoy4Right->setChecked(
true);
112 ui.radioBtnJoy5Up->setChecked(
true);
113 ui.radioBtnJoy5Down->setChecked(
false);
116 ui.radioBtnJoy4Left->setChecked(
false);
117 ui.radioBtnJoy4Right->setChecked(
true);
118 ui.radioBtnJoy5Up->setChecked(
false);
119 ui.radioBtnJoy5Down->setChecked(
false);
122 ui.radioBtnJoy4Left->setChecked(
false);
123 ui.radioBtnJoy4Right->setChecked(
true);
124 ui.radioBtnJoy5Up->setChecked(
false);
125 ui.radioBtnJoy5Down->setChecked(
true);
128 ui.radioBtnJoy4Left->setChecked(
false);
129 ui.radioBtnJoy4Right->setChecked(
false);
130 ui.radioBtnJoy5Up->setChecked(
false);
131 ui.radioBtnJoy5Down->setChecked(
true);
134 ui.radioBtnJoy4Left->setChecked(
true);
135 ui.radioBtnJoy4Right->setChecked(
false);
136 ui.radioBtnJoy5Up->setChecked(
false);
137 ui.radioBtnJoy5Down->setChecked(
true);
140 ui.radioBtnJoy4Left->setChecked(
true);
141 ui.radioBtnJoy4Right->setChecked(
false);
142 ui.radioBtnJoy5Up->setChecked(
false);
143 ui.radioBtnJoy5Down->setChecked(
false);
146 ui.radioBtnJoy4Left->setChecked(
true);
147 ui.radioBtnJoy4Right->setChecked(
false);
148 ui.radioBtnJoy5Up->setChecked(
true);
149 ui.radioBtnJoy5Down->setChecked(
false);
162 ui.sliderJoystickX->setValue(axisValue);
167 ui.sliderJoystickY->setValue(axisValue);
175 ui.radioBtnJoy5Up->setChecked(
true);
181 ui.radioBtnJoy5Down->setChecked(
true);
186 ui.radioBtnJoy5Up->setChecked(
false);
187 ui.radioBtnJoy5Down->setChecked(
false);
196 ui.radioBtnJoy4Left->setChecked(
true);
202 ui.radioBtnJoy4Right->setChecked(
true);
207 ui.radioBtnJoy4Left->setChecked(
false);
208 ui.radioBtnJoy4Right->setChecked(
false);