|
From: Tapio V. <aa...@us...> - 2010-01-17 17:32:29
|
Module: performous
Branch: master
Commit: 8be831b451d3e59fd980ccc623604bc04412e7a8
Author: Tapio Vierros <tap...@gm...>
Date: Sun Jan 17 19:31:44 2010 +0200
Added GH Metallica guitar auto-detection.
---
game/joystick.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/game/joystick.cc b/game/joystick.cc
index 5132a0f..02df2d1 100644
--- a/game/joystick.cc
+++ b/game/joystick.cc
@@ -282,6 +282,10 @@ void input::SDL::init() {
// here we can have both drumkit or guitar .... let say the drumkit
std::cout << " Detected as: Guitar Hero Drums (guessed)" << std::endl;
input::Private::devices[i] = input::Private::InputDevPrivate(input::Private::DRUMS_GH);
+ } else if( name.find("RedOctane MIDI Drum GuitarHero") != std::string::npos ) {
+ // This is GH Metallica guitar
+ std::cout << " Detected as: Guitar Hero Guitar" << std::endl;
+ input::Private::devices[i] = input::Private::InputDevPrivate(input::Private::GUITAR_GH);
} else if( name.find("Harmonix Guitar") != std::string::npos ) {
if (name.find("Xbox") != std::string::npos) {
std::cout << " Detected as: RockBand Guitar Xbox360" << std::endl;
|