|
From: knittl <kn...@us...> - 2009-08-03 08:40:46
|
Module: performous
Branch: master
Commit: f2768aeb127ae5cda3900e414ad923f73b56502b
Author: Vincent Le Ligeour <yo...@us...>
Date: Sat Aug 1 18:58:13 2009 +0200
Added some comments
---
game/joystick.cc | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/game/joystick.cc b/game/joystick.cc
index 2c522b5..bee8bdb 100644
--- a/game/joystick.cc
+++ b/game/joystick.cc
@@ -7,18 +7,20 @@ static const unsigned SDL_BUTTONS = 6;
int buttonFromSDL(input::Private::Type _type, unsigned int _sdl_button) {
static const int inputmap[4][SDL_BUTTONS] = {
+ //G R Y B O // for guitars
{ 2, 0, 1, 3, 4, 0 }, // Guitar Hero guitar
- { 3, 4, 1, 2, 0, 4 }, // Guitar Hero drums
{ 3, 0, 1, 2, 4, 0 }, // Rock Band guitar
+ //K R Y B G O // for drums
+ { 3, 4, 1, 2, 0, 4 }, // Guitar Hero drums
{ 3, 4, 1, 2, 0, 0 } // Rock Band drums
};
if( _sdl_button >= SDL_BUTTONS ) return -1;
switch(_type) {
case input::Private::GUITAR_GH:
return inputmap[0][_sdl_button];
- case input::Private::DRUMS_GH:
- return inputmap[1][_sdl_button];
case input::Private::GUITAR_RB:
+ return inputmap[1][_sdl_button];
+ case input::Private::DRUMS_GH:
return inputmap[2][_sdl_button];
case input::Private::DRUMS_RB:
return inputmap[3][_sdl_button];
|