diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-18 05:02:34 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-09 10:27:50 +0200 |
| commit | 24e37795d2db8fdc6f7809e793dadbae80211d26 (patch) | |
| tree | f2fd152fb44518222e290e555f0274af18d877bd /vjoy/VJoy.h | |
| parent | 9a87e2cb6e588641e3cff52655013594c492e033 (diff) | |
add SDKs
Diffstat (limited to 'vjoy/VJoy.h')
| -rwxr-xr-x | vjoy/VJoy.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vjoy/VJoy.h b/vjoy/VJoy.h new file mode 100755 index 0000000..b3145fc --- /dev/null +++ b/vjoy/VJoy.h @@ -0,0 +1,39 @@ +// VJoy.h header file.
+#ifdef VJOY_EXPORTS
+#define VJOY_API __declspec(dllexport)
+#else
+#define VJOY_API __declspec(dllimport)
+#endif
+
+#define VJOY_AXIS_MIN -32768
+#define VJOY_AXIS_NIL 0
+#define VJOY_AXIS_MAX 32767
+
+#define POV_UP 0
+#define POV_RIGHT 1
+#define POV_DOWN 2
+#define POV_LEFT 3
+#define POV_NIL 4
+
+#include <pshpack1.h>
+
+typedef struct _JOYSTICK_STATE
+{
+ UCHAR ReportId; // Report Id
+ SHORT XAxis; // X Axis
+ SHORT YAxis; // Y Axis
+ SHORT ZAxis; // Z Axis
+ SHORT XRotation; // X Rotation
+ SHORT YRotation; // Y Rotation
+ SHORT ZRotation; // Z Rotation
+ SHORT Slider; // Slider
+ SHORT Dial; // Dial
+ USHORT POV; // POV
+ UINT32 Buttons; // 32 Buttons
+} JOYSTICK_STATE, * PJOYSTICK_STATE;
+
+#include <poppack.h>
+
+VJOY_API BOOL __stdcall VJoy_Initialize(PCHAR name, PCHAR serial);
+VJOY_API VOID __stdcall VJoy_Shutdown();
+VJOY_API BOOL __stdcall VJoy_UpdateJoyState(int id, PJOYSTICK_STATE pJoyState);
|
