|
From: Lasse Kärkkäi. <tr...@us...> - 2011-07-06 23:34:59
|
Author: Vincent Le Ligeour <yo...@us...>
Date: Sat May 7 17:00:22 2011 +0200
Fixed instrument gameplay
---
game/joystick.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/game/joystick.cc b/game/joystick.cc
index a5c52a9..29432ed 100644
--- a/game/joystick.cc
+++ b/game/joystick.cc
@@ -756,6 +756,9 @@ bool input::SDL::pushEvent(SDL_Event _e) {
if(!dev.assigned()) return false;
if (dev.name() != "GUITAR_GUITARHERO_XPLORER" && (_e.jaxis.axis == 5 || _e.jaxis.axis == 6 || _e.jaxis.axis == 1)) {
event.type = input::Event::PICK;
+ for( unsigned int i = 0 ; i < BUTTONS ; ++i ) {
+ event.pressed[i] = dev.pressed(i);
+ }
// Direction
if(_e.jaxis.value > 0 ) {
// down
|