Skip to content

Commit bc95327

Browse files
author
Semphris
committed
Added option to allow binding multiple joysticks to a player
1 parent ea14109 commit bc95327

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/supertux/gameconfig.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Config::Config() :
9999
editor_autotile_help(true),
100100
editor_autosave_frequency(5),
101101
multiplayer_auto_manage_players(true),
102+
multiplayer_multibind(false),
102103
#if SDL_VERSION_ATLEAST(2, 0, 9)
103104
multiplayer_buzz_controllers(true),
104105
#else
@@ -205,6 +206,7 @@ Config::load()
205206
config_mapping.get("repository_url", repository_url);
206207

207208
config_mapping.get("multiplayer_auto_manage_players", multiplayer_auto_manage_players);
209+
config_mapping.get("multiplayer_multibind", multiplayer_multibind);
208210
config_mapping.get("multiplayer_buzz_controllers", multiplayer_buzz_controllers);
209211

210212
boost::optional<ReaderMapping> config_video_mapping;
@@ -331,6 +333,7 @@ Config::save()
331333
writer.write("locale", locale);
332334
writer.write("repository_url", repository_url);
333335
writer.write("multiplayer_auto_manage_players", multiplayer_auto_manage_players);
336+
writer.write("multiplayer_multibind", multiplayer_multibind);
334337
writer.write("multiplayer_buzz_controllers", multiplayer_buzz_controllers);
335338

336339
writer.start_list("interface_colors");

src/supertux/gameconfig.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class Config final
133133
int editor_autosave_frequency;
134134

135135
bool multiplayer_auto_manage_players;
136+
bool multiplayer_multibind;
136137
bool multiplayer_buzz_controllers;
137138

138139
std::string repository_url;

0 commit comments

Comments
 (0)