diff options
author | Florian Jung <flo@windfisch.org> | 2014-09-07 01:53:10 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2014-09-07 01:53:10 +0200 |
commit | f498d6e01a79ef9509d4b3e39e9ef354d0f7428a (patch) | |
tree | ff0cf6556471f187c11a4f0a96312540eb9fedd4 /mariokart.cpp | |
parent | 8bb8a119cf0bfea388e499f2d1bbcdbdd18d9db0 (diff) |
use JOYSTICK_{UINPUT,PATCHEDINPUTPLUGIN} #defines instead of FREEBSD/LINUX
Diffstat (limited to 'mariokart.cpp')
-rw-r--r-- | mariokart.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mariokart.cpp b/mariokart.cpp index d0903b2..414a9cd 100644 --- a/mariokart.cpp +++ b/mariokart.cpp @@ -203,7 +203,7 @@ int main(int argc, char* argv[]) string tmp; -#ifdef LINUX +#ifdef JOYSTICK_UINPUT Joystick joystick; cout << "joystick initalized, now starting mupen." << endl; #endif @@ -211,7 +211,7 @@ int main(int argc, char* argv[]) // for mupen 1.x if (fork()==0) { system("mupen64plus --nogui --noask ~/MarioKart64.rom"); exit(0); } if (fork()==0) { system("mupen64plus --windowed --resolution 640x480 ~/konsolenspiele/N64/MarioKart64.rom"); exit(0); } -#ifdef FREEBSD +#ifdef JOYSTICK_PATCHEDINPUTPLUGIN sleep(2); Joystick joystick; #endif @@ -221,7 +221,7 @@ int main(int argc, char* argv[]) joystick.reset(); cout << "successfully reset joystick." << endl; -/* cout << "press enter to steer left" << endl; + cout << "press enter to steer left" << endl; getchar(); @@ -247,7 +247,7 @@ int main(int argc, char* argv[]) cout << "A released." << endl; joystick.press_a(false); - getchar();*/ + getchar(); cout << "waiting for game to start, press enter when started." << endl; joystick.press_a(false); |