|
From: Yoda-JM <yo...@us...> - 2010-01-19 09:50:19
|
Module: performous
Branch: master
Commit: d970cce1c0bbc0e125a724e733a042854415e0a5
Author: Vincent Le Ligeour <yo...@us...>
Date: Tue Jan 19 10:49:53 2010 +0100
Fixed compilation without PortMidi
---
game/joystick.hh | 7 +++++++
game/main.cc | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/game/joystick.hh b/game/joystick.hh
index 5d43daf..45adb38 100644
--- a/game/joystick.hh
+++ b/game/joystick.hh
@@ -165,6 +165,13 @@ namespace input {
typedef std::map<unsigned, unsigned> Map;
Map map;
};
+#else
+ class MidiDrums {
+ public:
+ MidiDrums() {};
+ void process() {};
+ private:
+ };
#endif
}
diff --git a/game/main.cc b/game/main.cc
index f23bc06..b32ee38 100644
--- a/game/main.cc
+++ b/game/main.cc
@@ -359,8 +359,10 @@ int main(int argc, char** argv) try {
std::cout << std::flush;
return 0;
}
+#ifdef USE_PORTMIDI
// Dump a list of MIDI input devices
pm::dumpDevices(true);
+#endif
// Read config files
try {
readConfig();
|