Browse Source

Merge pull request #209 from lilligreen/joystickCount

Added getJoystickCount function for the Windows platform
Mike Lilligreen 11 years ago
parent
commit
ccb9aca833

+ 4 - 2
engine/source/platformWin32/winDInputDevice.cc

@@ -1482,5 +1482,7 @@ bool DInputDevice::joystickDetected()
    return( smJoystickCount > 0  );
 }
 
-
-
+U8 DInputDevice::getJoystickCount()
+{  
+   return(smJoystickCount);
+}

+ 1 - 1
engine/source/platformWin32/winDInputDevice.h

@@ -135,7 +135,7 @@ class DInputDevice : public InputDevice
       // Console interface functions:
       const char* getJoystickAxesString();
       static bool joystickDetected();
-      //
+      static U8 getJoystickCount();
 
       bool process();
 };

BIN
engine/source/platformWin32/winInput_ScriptBinding.h