|
From: Tapio V. <aa...@us...> - 2010-08-12 15:39:58
|
Module: performous
Branch: portaudio
Commit: 1999fae70a8a51dd26e29578ff1fc708cecdb1fa
Author: Vincent Le Ligeour <yo...@us...>
Date: Wed Aug 11 11:39:06 2010 +0200
Tried to fix instrument forcing
---
game/joystick.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/joystick.hh b/game/joystick.hh
index 31e0f30..bf83133 100644
--- a/game/joystick.hh
+++ b/game/joystick.hh
@@ -50,7 +50,7 @@ namespace input {
class InputDevPrivate {
public:
- InputDevPrivate(const Instrument &_instrument) : m_assigned(false), m_instrument(_instrument) {
+ InputDevPrivate(const Instrument _instrument) : m_assigned(false), m_instrument(_instrument) {
for(unsigned int i = 0 ; i < BUTTONS ; i++) {
m_pressed[i] = false;
}
@@ -97,7 +97,7 @@ namespace input {
std::deque<Event> m_events;
bool m_assigned;
bool m_pressed[BUTTONS];
- const Instrument &m_instrument;
+ Instrument m_instrument;
};
typedef std::map<unsigned int,InputDevPrivate> InputDevs;
|