|
From: Tapio V. <aa...@us...> - 2010-09-15 15:03:57
|
Module: performous
Branch: master
Commit: 0ab67d1b0c92dda94d56b4e716ace3342b4fcb96
Author: Tapio Vierros <tap...@gm...>
Date: Wed Sep 15 18:03:34 2010 +0300
Fix keyboard drum kit.
---
game/joystick.cc | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/game/joystick.cc b/game/joystick.cc
index 2691ae0..095ed04 100644
--- a/game/joystick.cc
+++ b/game/joystick.cc
@@ -505,7 +505,6 @@ bool input::SDL::pushEvent(SDL_Event _e) {
button++;
case SDLK_SPACE:
if(!drumkit) return false;
- if(devices.find(joy_id)->second.pressed(button)) return true; // repeating
is_drumkit_event = true;
event.type = input::Event::PRESS;
event.pressed[button] = true;
@@ -646,7 +645,6 @@ bool input::SDL::pushEvent(SDL_Event _e) {
button++;
case SDLK_SPACE:
if(!drumkit) return false;
- if(devices.find(joy_id)->second.pressed(button)) return true; // repeating
is_drumkit_event = true;
event.type = input::Event::RELEASE;
event.pressed[button] = true;
|