Browse Source

Fix type mismatch causing VS compile warn

Casey Doran 11 years ago
parent
commit
1c5f8a5a64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/source/platformWin32/winDirectInput.cc

+ 1 - 1
engine/source/platformWin32/winDirectInput.cc

@@ -732,7 +732,7 @@ inline void DInputManager::fireXInputButtonEvent( int controllerID, bool forceFi
 	  Con::printf("%s", objName);
 	  Con::printf("%s", objName);
 	  */
 	  */
 
 
-      buildXInputEvent( controllerID, XI_BUTTON, objInst, action, ( action == XI_MAKE ? 1 : 0 ) );
+      buildXInputEvent( controllerID, XI_BUTTON, objInst, action, ( action == XI_MAKE ? 1.0f : 0.0f ) );
    }
    }
 }
 }