From 186efd5c871bf703ddb43dbec5c10651eeaa1887 Mon Sep 17 00:00:00 2001 From: OTHGMars Date: Wed, 5 Aug 2020 02:50:04 -0400 Subject: [PATCH] Fix gamepad binds on non-windows. Removes unneeded #ifdef that was preventing gamepad binds from being found in non-windows builds. --- Engine/source/platform/input/event.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Engine/source/platform/input/event.cpp b/Engine/source/platform/input/event.cpp index cef472fab..89181d301 100644 --- a/Engine/source/platform/input/event.cpp +++ b/Engine/source/platform/input/event.cpp @@ -382,8 +382,7 @@ CodeMapping gVirtualMap[] = { "lpov2", SI_POV, SI_LPOV2 }, { "rpov2", SI_POV, SI_RPOV2 }, -#if defined( TORQUE_OS_WIN ) - //-------------------------------------- XINPUT EVENTS + //-------------------------------------- GAMEPAD EVENTS // Controller connect / disconnect: { "connect", SI_BUTTON, XI_CONNECT }, @@ -420,7 +419,6 @@ CodeMapping gVirtualMap[] = { "btn_b", SI_BUTTON, XI_B }, { "btn_x", SI_BUTTON, XI_X }, { "btn_y", SI_BUTTON, XI_Y }, -#endif //-------------------------------------- MISCELLANEOUS EVENTS //