File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ void GPLever::draw() {
37
37
int baseRadius = (int )(((double )this ->_radius * 1.00 ) * scaleX);
38
38
int leverRadius = (int )(((double )this ->_radius * 0.75 ) * scaleY);
39
39
40
+ // any zero-defined levers should be forced to dpad to avoid broken functionality. to be fixed.
41
+ if (this ->_inputType == GPLever_Mode::GP_LEVER_MODE_NONE) this ->_inputType = GPLever_Mode::GP_LEVER_MODE_DIGITAL;
42
+
40
43
bool dpadInput = ((this ->_inputType & GPLever_Mode::GP_LEVER_MODE_DIGITAL) == GPLever_Mode::GP_LEVER_MODE_DIGITAL);
41
44
bool leftAnalog = ((this ->_inputType & GPLever_Mode::GP_LEVER_MODE_LEFT_ANALOG) == GPLever_Mode::GP_LEVER_MODE_LEFT_ANALOG);
42
45
bool rightAnalog = ((this ->_inputType & GPLever_Mode::GP_LEVER_MODE_RIGHT_ANALOG) == GPLever_Mode::GP_LEVER_MODE_RIGHT_ANALOG);
You can’t perform that action at this time.
0 commit comments