diff options
Diffstat (limited to 'vjoy/VJoy.cpp')
-rwxr-xr-x | vjoy/VJoy.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vjoy/VJoy.cpp b/vjoy/VJoy.cpp new file mode 100755 index 0000000..42c2ae9 --- /dev/null +++ b/vjoy/VJoy.cpp @@ -0,0 +1,25 @@ +// VJoy.cpp : Defines the entry point for the console application.
+//
+
+#include "stdafx.h"
+#include "windows.h"
+#include "VJoy.h"
+
+JOYSTICK_STATE m_joyState[2] = { 0 };
+
+int main(int argc, char* argv[])
+{
+ VJoy_Initialize("", "");
+
+ m_joyState[0].XAxis = 32767;
+ m_joyState[0].YAxis = 32767;
+ m_joyState[0].ZAxis = 32767;
+ m_joyState[0].Buttons = 0xAAAAAAAA;
+ m_joyState[0].POV = (4 << 12) | (4 << 8) | (4 << 4) | 4;
+
+ VJoy_UpdateJoyState(0, &m_joyState[0]);
+
+ VJoy_Shutdown();
+
+ return 0;
+}
|