|
From: Tapio V. <aa...@us...> - 2010-08-12 21:27:15
|
Module: performous
Branch: joinmenu
Commit: 7565ac76210114e651baf140b52ea29bcbbf97d1
Author: Tapio Vierros <tap...@gm...>
Date: Thu Aug 5 20:37:21 2010 +0300
Fix mixed-up start/select with guitars and drums.
---
game/joystick.cc | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/game/joystick.cc b/game/joystick.cc
index f9fceef..5053d99 100644
--- a/game/joystick.cc
+++ b/game/joystick.cc
@@ -287,8 +287,8 @@ void readControllers(input::Instruments &instruments, fs::path const& file) {
else if(value == "blue") mapping[id] = 3;
else if(value == "orange") mapping[id] = 4;
else if(value == "starpower") mapping[id] = 5;
- else if(value == "start") mapping[id] = 8;
- else if(value == "select") mapping[id] = 9;
+ else if(value == "select") mapping[id] = 8;
+ else if(value == "start") mapping[id] = 9;
else continue;
}
break;
@@ -304,8 +304,8 @@ void readControllers(input::Instruments &instruments, fs::path const& file) {
else if(value == "blue") mapping[id] = 3;
else if(value == "green") mapping[id] = 4;
else if(value == "orange") mapping[id] = 5;
- else if(value == "start") mapping[id] = 8;
- else if(value == "select") mapping[id] = 9;
+ else if(value == "select") mapping[id] = 8;
+ else if(value == "start") mapping[id] = 9;
else continue;
}
break;
@@ -349,7 +349,7 @@ void readControllers(input::Instruments &instruments, fs::path const& file) {
}
void input::SDL::init() {
- readControllers(g_instruments, getDefaultConfig(fs::path("/config/controllers.xml")));
+ readControllers(g_instruments, getDefaultConfig(fs::path("/config/controllers.xml")));
readControllers(g_instruments, getConfigDir() / "controllers.xml");
unsigned int sdl_id;
std::string instrument_type;
|