File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ void GPLever::draw() {
3737 int baseRadius = (int )(((double )this ->_radius * 1.00 ) * scaleX);
3838 int leverRadius = (int )(((double )this ->_radius * 0.75 ) * scaleY);
3939
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+
4043 bool dpadInput = ((this ->_inputType & GPLever_Mode::GP_LEVER_MODE_DIGITAL) == GPLever_Mode::GP_LEVER_MODE_DIGITAL);
4144 bool leftAnalog = ((this ->_inputType & GPLever_Mode::GP_LEVER_MODE_LEFT_ANALOG) == GPLever_Mode::GP_LEVER_MODE_LEFT_ANALOG);
4245 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