浏览代码

Merge pull request #273 from OTHGMars/GamePad_nonwin

Fix gamepad binds on non-windows.
Brian Roberts 5 年之前
父节点
当前提交
2b686bf713
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      Engine/source/platform/input/event.cpp

+ 1 - 3
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
    //