From 924f478a81b0afbe9da89654c3ccf310da1efbd8 Mon Sep 17 00:00:00 2001 From: "Lars A. Doucet" Date: Tue, 14 Jul 2015 10:36:01 -0500 Subject: [PATCH] added legacy support for wiimote gamepad detection --- legacy/project/src/sdl2/SDL2Stage.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/legacy/project/src/sdl2/SDL2Stage.cpp b/legacy/project/src/sdl2/SDL2Stage.cpp index 689a6b56e..46047009c 100644 --- a/legacy/project/src/sdl2/SDL2Stage.cpp +++ b/legacy/project/src/sdl2/SDL2Stage.cpp @@ -1409,6 +1409,18 @@ void ProcessEvent(SDL_Event &inEvent) { joystick.x = 3; } + else if (strcmp (gamepadstring, "Mayflash WIIMote PC Adapter") == 0) //MayFlash WIIMote PC Adapter + { + joystick.x = 4; + } + else if (strcmp (gamepadstring, "Nintendo RVL-CNT-01-TR") == 0) //Nintendo WIIMote MotionPlus, used directly + { + joystick.x = 5; + } + else if (strcmp (gamepadstring, "Nintendo RVL-CNT-01") == 0) //Nintendo WIIMote w/o MotionPlus attachment, used directly + { + joystick.x = 6; + } else //default (XBox 360, basically) { joystick.x = 0;