Reduce FPs on the unmapped gamepad dialog
This commit is contained in:
parent
9bf612b800
commit
de3928cb4d
1 changed files with 1 additions and 1 deletions
|
|
@ -971,7 +971,7 @@ QString SdlInputHandler::getUnmappedGamepads()
|
|||
"Number of axes: %d | Number of buttons: %d | Number of hats: %d",
|
||||
numAxes, numButtons, numHats);
|
||||
|
||||
if (numAxes >= 4 && numButtons >= 8 && numHats <= 1) {
|
||||
if ((numAxes >= 4 && numAxes <= 8) && numButtons >= 8 && numHats <= 1) {
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Joystick likely to be an unmapped game controller");
|
||||
if (!ret.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue