mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Reduce FPs on the unmapped gamepad dialog
This commit is contained in:
@@ -971,7 +971,7 @@ QString SdlInputHandler::getUnmappedGamepads()
|
|||||||
"Number of axes: %d | Number of buttons: %d | Number of hats: %d",
|
"Number of axes: %d | Number of buttons: %d | Number of hats: %d",
|
||||||
numAxes, numButtons, numHats);
|
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,
|
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"Joystick likely to be an unmapped game controller");
|
"Joystick likely to be an unmapped game controller");
|
||||||
if (!ret.isEmpty()) {
|
if (!ret.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user