Merge remote-tracking branch 'origin/input-fix-real' into input-fix-real

This commit is contained in:
nickci2002 2025-06-19 17:34:53 -04:00
commit 32e662d013
9 changed files with 20 additions and 10 deletions

View File

@ -224,7 +224,10 @@ jobs:
arch: clang_64 arch: clang_64
archives: qtbase qttools archives: qtbase qttools
modules: qtmultimedia modules: qtmultimedia
- name: Workaround Qt <=6.9.1 issue
run: sed -i '' '/target_link_libraries(WrapOpenGL::WrapOpenGL INTERFACE ${__opengl_agl_fw_path})/d' ${{env.QT_ROOT_DIR}}/lib/cmake/Qt6/FindWrapOpenGL.cmake
- name: Cache CMake Configuration - name: Cache CMake Configuration
uses: actions/cache@v4 uses: actions/cache@v4
env: env:

View File

@ -5,6 +5,7 @@
#include <map> #include <map>
#include <mutex> #include <mutex>
#include <string>
#include <string_view> #include <string_view>
#include "common/enum.h" #include "common/enum.h"
#include "common/singleton.h" #include "common/singleton.h"

View File

@ -104,6 +104,10 @@ const std::map<std::string, u32> string_to_cbutton_map = {
// this is only for input // this is only for input
{"back", SDL_GAMEPAD_BUTTON_BACK}, {"back", SDL_GAMEPAD_BUTTON_BACK},
{"lpaddle_high", SDL_GAMEPAD_BUTTON_LEFT_PADDLE1},
{"lpaddle_low", SDL_GAMEPAD_BUTTON_LEFT_PADDLE2},
{"rpaddle_high", SDL_GAMEPAD_BUTTON_RIGHT_PADDLE1},
{"rpaddle_low", SDL_GAMEPAD_BUTTON_RIGHT_PADDLE2},
}; };
const std::map<std::string, AxisMapping> string_to_axis_map = { const std::map<std::string, AxisMapping> string_to_axis_map = {
@ -259,6 +263,8 @@ const std::map<std::string, u32> string_to_keyboard_key_map = {
{"mousewheeldown", SDL_MOUSE_WHEEL_DOWN}, {"mousewheeldown", SDL_MOUSE_WHEEL_DOWN},
{"mousewheelleft", SDL_MOUSE_WHEEL_LEFT}, {"mousewheelleft", SDL_MOUSE_WHEEL_LEFT},
{"mousewheelright", SDL_MOUSE_WHEEL_RIGHT}, {"mousewheelright", SDL_MOUSE_WHEEL_RIGHT},
// no binding
{"unmapped", SDL_UNMAPPED}, {"unmapped", SDL_UNMAPPED},
}; };

View File

@ -1184,7 +1184,7 @@
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
%1</source> %1</source>
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <translation>No es pot assignar una entrada més d'una vegada. S'han assignat de manera duplicada pels següents botons:
%1</translation> %1</translation>
</message> </message>

View File

@ -337,7 +337,7 @@
</message> </message>
<message> <message>
<source>The update has been downloaded, press OK to install.</source> <source>The update has been downloaded, press OK to install.</source>
<translation>Oppdateringen ble lastet ned, trykk OK for å installere.</translation> <translation>Oppdateringen er lastet ned, trykk OK for å installere.</translation>
</message> </message>
<message> <message>
<source>Failed to save the update file at</source> <source>Failed to save the update file at</source>
@ -990,7 +990,7 @@
</message> </message>
<message> <message>
<source>unmapped</source> <source>unmapped</source>
<translation>Ikke satt opp</translation> <translation>Ikke tildelt</translation>
</message> </message>
<message> <message>
<source>Left</source> <source>Left</source>
@ -1184,7 +1184,7 @@
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
%1</source> %1</source>
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <translation>Kan ikke tildele samme inndata mer enn én gang. Dupliserte inndata tildeles følgende taster:
%1</translation> %1</translation>
</message> </message>

View File

@ -1184,7 +1184,7 @@
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
%1</source> %1</source>
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <translation>Não é possível atribuir a mesma entrada mais de uma vez. Entradas duplicadas foram atribuídas aos seguintes botões:
%1</translation> %1</translation>
</message> </message>

View File

@ -1138,7 +1138,7 @@
</message> </message>
<message> <message>
<source>This button copies mappings from the Common Config to the currently selected profile, and cannot be used when the currently selected profile is the Common Config.</source> <source>This button copies mappings from the Common Config to the currently selected profile, and cannot be used when the currently selected profile is the Common Config.</source>
<translation>Эта кнопка копирует настройки из общего конфига в текущий выбранный профиль, и не может быть использован, когда выбранный профиль это общий конфиг.</translation> <translation>Эта кнопка копирует настройки из общего конфига в текущий выбранный профиль, и не может быть использован, когда выбранный профиль - это общий конфиг.</translation>
</message> </message>
<message> <message>
<source>Copy values from Common Config</source> <source>Copy values from Common Config</source>
@ -1184,7 +1184,7 @@
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
%1</source> %1</source>
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <translation>Невозможно привязать уникальный ввод более одного раза. Дублированные вводы назначены на следующие кнопки:
%1</translation> %1</translation>
</message> </message>

View File

@ -1184,7 +1184,7 @@
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
%1</source> %1</source>
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <translation>Det går inte att binda samma unika inmatning mer än en gång. Dubbla inmatningar har mappats till följande knappar:
%1</translation> %1</translation>
</message> </message>

View File

@ -1184,7 +1184,7 @@
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
%1</source> %1</source>
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons: <translation>
%1</translation> %1</translation>
</message> </message>