summaryrefslogtreecommitdiffhomepage
path: root/vjoy
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-18 05:02:34 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-09 10:27:50 +0200
commit24e37795d2db8fdc6f7809e793dadbae80211d26 (patch)
treef2fd152fb44518222e290e555f0274af18d877bd /vjoy
parent9a87e2cb6e588641e3cff52655013594c492e033 (diff)
add SDKs
Diffstat (limited to 'vjoy')
-rwxr-xr-xvjoy/Debug/VJoy.dllbin0 -> 94208 bytes
-rwxr-xr-xvjoy/Debug/VJoy.exebin0 -> 172147 bytes
-rwxr-xr-xvjoy/Debug/VJoy.ilkbin0 -> 173632 bytes
-rwxr-xr-xvjoy/Debug/VJoy.pchbin0 -> 191584 bytes
-rwxr-xr-xvjoy/Debug/VJoy.pdbbin0 -> 353280 bytes
-rwxr-xr-xvjoy/Debug/vc60.idbbin0 -> 205824 bytes
-rwxr-xr-xvjoy/Debug/vc60.pdbbin0 -> 348160 bytes
-rwxr-xr-xvjoy/ReadMe.txt34
-rwxr-xr-xvjoy/StdAfx.cpp8
-rwxr-xr-xvjoy/StdAfx.h19
-rwxr-xr-xvjoy/VJoy.cpp25
-rwxr-xr-xvjoy/VJoy.dllbin0 -> 94208 bytes
-rwxr-xr-xvjoy/VJoy.dsp121
-rwxr-xr-xvjoy/VJoy.dsw29
-rwxr-xr-xvjoy/VJoy.h39
-rwxr-xr-xvjoy/VJoy.libbin0 -> 2584 bytes
-rwxr-xr-xvjoy/VJoy.ncbbin0 -> 50176 bytes
-rwxr-xr-xvjoy/VJoy.optbin0 -> 53760 bytes
-rwxr-xr-xvjoy/VJoy.plg46
19 files changed, 321 insertions, 0 deletions
diff --git a/vjoy/Debug/VJoy.dll b/vjoy/Debug/VJoy.dll
new file mode 100755
index 0000000..a383fd7
--- /dev/null
+++ b/vjoy/Debug/VJoy.dll
Binary files differ
diff --git a/vjoy/Debug/VJoy.exe b/vjoy/Debug/VJoy.exe
new file mode 100755
index 0000000..52b39a4
--- /dev/null
+++ b/vjoy/Debug/VJoy.exe
Binary files differ
diff --git a/vjoy/Debug/VJoy.ilk b/vjoy/Debug/VJoy.ilk
new file mode 100755
index 0000000..cd8ac3e
--- /dev/null
+++ b/vjoy/Debug/VJoy.ilk
Binary files differ
diff --git a/vjoy/Debug/VJoy.pch b/vjoy/Debug/VJoy.pch
new file mode 100755
index 0000000..5d895a7
--- /dev/null
+++ b/vjoy/Debug/VJoy.pch
Binary files differ
diff --git a/vjoy/Debug/VJoy.pdb b/vjoy/Debug/VJoy.pdb
new file mode 100755
index 0000000..a14a32e
--- /dev/null
+++ b/vjoy/Debug/VJoy.pdb
Binary files differ
diff --git a/vjoy/Debug/vc60.idb b/vjoy/Debug/vc60.idb
new file mode 100755
index 0000000..5b1403d
--- /dev/null
+++ b/vjoy/Debug/vc60.idb
Binary files differ
diff --git a/vjoy/Debug/vc60.pdb b/vjoy/Debug/vc60.pdb
new file mode 100755
index 0000000..4e0fc8a
--- /dev/null
+++ b/vjoy/Debug/vc60.pdb
Binary files differ
diff --git a/vjoy/ReadMe.txt b/vjoy/ReadMe.txt
new file mode 100755
index 0000000..b91bb56
--- /dev/null
+++ b/vjoy/ReadMe.txt
@@ -0,0 +1,34 @@
+========================================================================
+ CONSOLE APPLICATION : VJoy
+========================================================================
+
+
+AppWizard has created this VJoy application for you.
+
+This file contains a summary of what you will find in each of the files that
+make up your VJoy application.
+
+VJoy.dsp
+ This file (the project file) contains information at the project level and
+ is used to build a single project or subproject. Other users can share the
+ project (.dsp) file, but they should export the makefiles locally.
+
+VJoy.cpp
+ This is the main application source file.
+
+
+/////////////////////////////////////////////////////////////////////////////
+Other standard files:
+
+StdAfx.h, StdAfx.cpp
+ These files are used to build a precompiled header (PCH) file
+ named VJoy.pch and a precompiled types file named StdAfx.obj.
+
+
+/////////////////////////////////////////////////////////////////////////////
+Other notes:
+
+AppWizard uses "TODO:" to indicate parts of the source code you
+should add to or customize.
+
+/////////////////////////////////////////////////////////////////////////////
diff --git a/vjoy/StdAfx.cpp b/vjoy/StdAfx.cpp
new file mode 100755
index 0000000..ccd2455
--- /dev/null
+++ b/vjoy/StdAfx.cpp
@@ -0,0 +1,8 @@
+// stdafx.cpp : source file that includes just the standard includes
+// VJoy.pch will be the pre-compiled header
+// stdafx.obj will contain the pre-compiled type information
+
+#include "stdafx.h"
+
+// TODO: reference any additional headers you need in STDAFX.H
+// and not in this file
diff --git a/vjoy/StdAfx.h b/vjoy/StdAfx.h
new file mode 100755
index 0000000..1f9af59
--- /dev/null
+++ b/vjoy/StdAfx.h
@@ -0,0 +1,19 @@
+// stdafx.h : include file for standard system include files,
+// or project specific include files that are used frequently, but
+// are changed infrequently
+//
+
+#if !defined(AFX_STDAFX_H__B4543DD5_284F_4EB2_A6B0_8757CF067C24__INCLUDED_)
+#define AFX_STDAFX_H__B4543DD5_284F_4EB2_A6B0_8757CF067C24__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+
+// TODO: reference additional headers your program requires here
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_STDAFX_H__B4543DD5_284F_4EB2_A6B0_8757CF067C24__INCLUDED_)
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;
+}
diff --git a/vjoy/VJoy.dll b/vjoy/VJoy.dll
new file mode 100755
index 0000000..e344667
--- /dev/null
+++ b/vjoy/VJoy.dll
Binary files differ
diff --git a/vjoy/VJoy.dsp b/vjoy/VJoy.dsp
new file mode 100755
index 0000000..49eef32
--- /dev/null
+++ b/vjoy/VJoy.dsp
@@ -0,0 +1,121 @@
+# Microsoft Developer Studio Project File - Name="VJoy" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=VJoy - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "VJoy.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "VJoy.mak" CFG="VJoy - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "VJoy - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "VJoy - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "VJoy - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Yu"stdafx.h" /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Yu"stdafx.h" /FD /c
+# ADD BASE RSC /l 0xc09 /d "NDEBUG"
+# ADD RSC /l 0xc09 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+
+!ELSEIF "$(CFG)" == "VJoy - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Yu"stdafx.h" /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Yu"stdafx.h" /FD /GZ /c
+# ADD BASE RSC /l 0xc09 /d "_DEBUG"
+# ADD RSC /l 0xc09 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+
+!ENDIF
+
+# Begin Target
+
+# Name "VJoy - Win32 Release"
+# Name "VJoy - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\VJoy.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\StdAfx.cpp
+# ADD CPP /Yc"stdafx.h"
+# End Source File
+# Begin Source File
+
+SOURCE=.\VJoy.lib
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=.\VJoy.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\StdAfx.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# Begin Source File
+
+SOURCE=.\ReadMe.txt
+# End Source File
+# End Target
+# End Project
diff --git a/vjoy/VJoy.dsw b/vjoy/VJoy.dsw
new file mode 100755
index 0000000..555be9b
--- /dev/null
+++ b/vjoy/VJoy.dsw
@@ -0,0 +1,29 @@
+Microsoft Developer Studio Workspace File, Format Version 6.00
+# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
+
+###############################################################################
+
+Project: "VJoy"=".\VJoy.dsp" - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Global:
+
+Package=<5>
+{{{
+}}}
+
+Package=<3>
+{{{
+}}}
+
+###############################################################################
+
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);
diff --git a/vjoy/VJoy.lib b/vjoy/VJoy.lib
new file mode 100755
index 0000000..9229546
--- /dev/null
+++ b/vjoy/VJoy.lib
Binary files differ
diff --git a/vjoy/VJoy.ncb b/vjoy/VJoy.ncb
new file mode 100755
index 0000000..10acc5b
--- /dev/null
+++ b/vjoy/VJoy.ncb
Binary files differ
diff --git a/vjoy/VJoy.opt b/vjoy/VJoy.opt
new file mode 100755
index 0000000..545a537
--- /dev/null
+++ b/vjoy/VJoy.opt
Binary files differ
diff --git a/vjoy/VJoy.plg b/vjoy/VJoy.plg
new file mode 100755
index 0000000..6556074
--- /dev/null
+++ b/vjoy/VJoy.plg
@@ -0,0 +1,46 @@
+<html>
+<body>
+<pre>
+<h1>Build Log</h1>
+<h3>
+--------------------Configuration: VJoy - Win32 Debug--------------------
+</h3>
+<h3>Command Lines</h3>
+Creating temporary file "C:\DOCUME~1\Headsoft\LOCALS~1\Temp\RSP2C71.tmp" with contents
+[
+/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/VJoy.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
+"C:\Documents and Settings\Headsoft\My Documents\Visual Studio Projects\VJoy SDK\C++\VJoy.cpp"
+]
+Creating command line "cl.exe @C:\DOCUME~1\Headsoft\LOCALS~1\Temp\RSP2C71.tmp"
+Creating temporary file "C:\DOCUME~1\Headsoft\LOCALS~1\Temp\RSP2C72.tmp" with contents
+[
+/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/VJoy.pch" /Yc"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
+"C:\Documents and Settings\Headsoft\My Documents\Visual Studio Projects\VJoy SDK\C++\StdAfx.cpp"
+]
+Creating command line "cl.exe @C:\DOCUME~1\Headsoft\LOCALS~1\Temp\RSP2C72.tmp"
+Creating temporary file "C:\DOCUME~1\Headsoft\LOCALS~1\Temp\RSP2C73.tmp" with contents
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/VJoy.pdb" /debug /machine:I386 /out:"Debug/VJoy.exe" /pdbtype:sept
+".\Debug\VJoy.obj"
+".\Debug\StdAfx.obj"
+".\VJoy.lib"
+]
+Creating command line "link.exe @C:\DOCUME~1\Headsoft\LOCALS~1\Temp\RSP2C73.tmp"
+<h3>Output Window</h3>
+Compiling...
+StdAfx.cpp
+Compiling...
+VJoy.cpp
+c:\winddk\6001.18002\inc\api\winnt.h(3607) : warning C4035: 'ReadPMC' : no return value
+c:\winddk\6001.18002\inc\api\winnt.h(3637) : warning C4035: 'ReadTimeStampCounter' : no return value
+c:\winddk\6001.18002\inc\api\wingdi.h(4340) : warning C4068: unknown pragma
+c:\winddk\6001.18002\inc\api\wingdi.h(4341) : warning C4068: unknown pragma
+Linking...
+
+
+
+<h3>Results</h3>
+VJoy.exe - 0 error(s), 4 warning(s)
+</pre>
+</body>
+</html>