|
From: Yoda-JM <yo...@us...> - 2010-08-15 14:53:34
|
Module: performous
Branch: joinmenu
Commit: db8ea4dfbc027014e2ee21beb77bbe13a1eb2163
Author: Vincent Le Ligeour <yo...@us...>
Date: Sun Aug 15 16:51:02 2010 +0200
Fixed use of new joystick code
---
game/joystick.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/joystick.cc b/game/joystick.cc
index 9c4c468..bbe21c6 100644
--- a/game/joystick.cc
+++ b/game/joystick.cc
@@ -817,7 +817,7 @@ bool input::SDL::pushEvent(SDL_Event _e) {
if (event.nav != input::NONE) {
event.button = 0;
event.type = input::Event::PRESS;
- devices[joy_id].addEvent(event);
+ devices.find(joy_id)->second.addEvent(event);
}
return false;
}
|