Skip to content

Commit 19b2d77

Browse files
committed
Change KBM default to elden ring defaults, add note on remapping
1 parent c73520b commit 19b2d77

File tree

4 files changed

+58
-45
lines changed

4 files changed

+58
-45
lines changed

modules/bblauncher.ui

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<x>0</x>
1111
<y>0</y>
1212
<width>730</width>
13-
<height>669</height>
13+
<height>683</height>
1414
</rect>
1515
</property>
1616
<property name="sizePolicy">
@@ -46,7 +46,7 @@
4646
<property name="geometry">
4747
<rect>
4848
<x>40</x>
49-
<y>350</y>
49+
<y>370</y>
5050
<width>131</width>
5151
<height>20</height>
5252
</rect>
@@ -59,7 +59,7 @@
5959
<property name="geometry">
6060
<rect>
6161
<x>380</x>
62-
<y>350</y>
62+
<y>370</y>
6363
<width>131</width>
6464
<height>20</height>
6565
</rect>
@@ -71,8 +71,8 @@
7171
<widget class="QWidget" name="horizontalLayoutWidget_2">
7272
<property name="geometry">
7373
<rect>
74-
<x>40</x>
75-
<y>370</y>
74+
<x>30</x>
75+
<y>390</y>
7676
<width>671</width>
7777
<height>271</height>
7878
</rect>
@@ -392,6 +392,24 @@
392392
</item>
393393
</layout>
394394
</widget>
395+
<widget class="QLabel" name="label_3">
396+
<property name="geometry">
397+
<rect>
398+
<x>170</x>
399+
<y>337</y>
400+
<width>431</width>
401+
<height>16</height>
402+
</rect>
403+
</property>
404+
<property name="font">
405+
<font>
406+
<bold>true</bold>
407+
</font>
408+
</property>
409+
<property name="text">
410+
<string>Note: remapping only works on shadPS4 versions relased after Feb. 2, 2025</string>
411+
</property>
412+
</widget>
395413
</widget>
396414
<widget class="QStatusBar" name="statusbar"/>
397415
</widget>

settings/LauncherSettings.cpp

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -290,46 +290,46 @@ void SetTheme(std::string theme) {
290290
qApp->setPalette(themePalette);
291291
}
292292

293-
constexpr std::string_view GetDefaultKeyboardConfig() {
293+
std::string_view GetDefaultKeyboardConfig() {
294294
return R"(#Feeling lost? Check out the Help section!
295295
296-
# Keyboard bindings
297-
298-
triangle = kp8
299-
circle = kp6
300-
cross = kp2
301-
square = kp4
302-
# Alternatives for users without a keypad
303-
triangle = c
304-
circle = b
305-
cross = n
306-
square = v
307-
308-
l1 = q
309-
r1 = u
310-
l2 = e
311-
r2 = o
296+
#Keyboard bindings
297+
298+
triangle = f
299+
circle = space
300+
cross = e
301+
square = r
302+
303+
pad_up = w, lalt
304+
pad_up = mousewheelup
305+
pad_down = s, lalt
306+
pad_down = mousewheeldown
307+
pad_left = a, lalt
308+
pad_left = mousewheelleft
309+
pad_right = d, lalt
310+
pad_right = mousewheelright
311+
312+
l1 = rightbutton, lshift
313+
r1 = leftbutton
314+
l2 = rightbutton
315+
r2 = leftbutton, lshift
312316
l3 = x
313-
r3 = m
317+
r3 = q
318+
r3 = middlebutton
314319
315-
options = enter
316-
touchpad = space
320+
options = escape
321+
touchpad = g
317322
318-
pad_up = up
319-
pad_down = down
320-
pad_left = left
321-
pad_right = right
323+
key_toggle = i, lalt
324+
mouse_to_joystick = right
325+
mouse_movement_params = 0.5, 1, 0.125
326+
leftjoystick_halfmode = lctrl
322327
323328
axis_left_x_minus = a
324329
axis_left_x_plus = d
325330
axis_left_y_minus = w
326331
axis_left_y_plus = s
327332
328-
axis_right_x_minus = j
329-
axis_right_x_plus = l
330-
axis_right_y_minus = i
331-
axis_right_y_plus = k
332-
333333
# Controller bindings
334334
335335
triangle = triangle

settings/LauncherSettings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void LoadLauncherSettings();
1515
void CreateSettingsFile();
1616
void SetTheme(std::string theme);
1717
std::filesystem::path GetFoolproofKbmConfigFile(const std::string& game_id);
18-
constexpr std::string_view GetDefaultKeyboardConfig();
18+
std::string_view GetDefaultKeyboardConfig();
1919
void SaveUnifiedControl(bool setting);
2020

2121
extern std::string theme;

settings/kbm_config_dialog.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,19 +191,15 @@ void EditorDialog::onHelpClicked() {
191191
}
192192

193193
void EditorDialog::onResetToDefaultClicked() {
194-
bool default_default = gameComboBox->currentText() == "default";
195-
QString prompt =
196-
default_default
197-
? "Do you want to reset your custom default config to the original default config?"
198-
: "Do you want to reset this config to your custom default config?";
194+
195+
QString prompt = "Do you want to reset to default config?";
199196
QMessageBox::StandardButton reply =
200197
QMessageBox::question(this, "Reset to Default", prompt, QMessageBox::Yes | QMessageBox::No);
201198

202199
if (reply == QMessageBox::Yes) {
203-
if (default_default) {
204-
const auto default_file = Config::GetFoolproofKbmConfigFile("default");
205-
std::filesystem::remove(default_file);
206-
}
200+
const auto default_file = Config::GetFoolproofKbmConfigFile("default");
201+
std::filesystem::remove(default_file);
202+
207203
const auto config_file = Config::GetFoolproofKbmConfigFile("default");
208204
QFile file(config_file);
209205

@@ -214,7 +210,6 @@ void EditorDialog::onResetToDefaultClicked() {
214210
} else {
215211
QMessageBox::warning(this, "Error", "Could not open the file for reading");
216212
}
217-
// saveFile(gameComboBox->currentText());
218213
}
219214
}
220215

0 commit comments

Comments
 (0)