From 24e37795d2db8fdc6f7809e793dadbae80211d26 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 18 Aug 2015 05:02:34 +0200 Subject: add SDKs --- vjoy/Debug/VJoy.dll | Bin 0 -> 94208 bytes vjoy/Debug/VJoy.exe | Bin 0 -> 172147 bytes vjoy/Debug/VJoy.ilk | Bin 0 -> 173632 bytes vjoy/Debug/VJoy.pch | Bin 0 -> 191584 bytes vjoy/Debug/VJoy.pdb | Bin 0 -> 353280 bytes vjoy/Debug/vc60.idb | Bin 0 -> 205824 bytes vjoy/Debug/vc60.pdb | Bin 0 -> 348160 bytes vjoy/ReadMe.txt | 34 +++++++++++++++ vjoy/StdAfx.cpp | 8 ++++ vjoy/StdAfx.h | 19 +++++++++ vjoy/VJoy.cpp | 25 +++++++++++ vjoy/VJoy.dll | Bin 0 -> 94208 bytes vjoy/VJoy.dsp | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++ vjoy/VJoy.dsw | 29 +++++++++++++ vjoy/VJoy.h | 39 +++++++++++++++++ vjoy/VJoy.lib | Bin 0 -> 2584 bytes vjoy/VJoy.ncb | Bin 0 -> 50176 bytes vjoy/VJoy.opt | Bin 0 -> 53760 bytes vjoy/VJoy.plg | 46 ++++++++++++++++++++ 19 files changed, 321 insertions(+) create mode 100755 vjoy/Debug/VJoy.dll create mode 100755 vjoy/Debug/VJoy.exe create mode 100755 vjoy/Debug/VJoy.ilk create mode 100755 vjoy/Debug/VJoy.pch create mode 100755 vjoy/Debug/VJoy.pdb create mode 100755 vjoy/Debug/vc60.idb create mode 100755 vjoy/Debug/vc60.pdb create mode 100755 vjoy/ReadMe.txt create mode 100755 vjoy/StdAfx.cpp create mode 100755 vjoy/StdAfx.h create mode 100755 vjoy/VJoy.cpp create mode 100755 vjoy/VJoy.dll create mode 100755 vjoy/VJoy.dsp create mode 100755 vjoy/VJoy.dsw create mode 100755 vjoy/VJoy.h create mode 100755 vjoy/VJoy.lib create mode 100755 vjoy/VJoy.ncb create mode 100755 vjoy/VJoy.opt create mode 100755 vjoy/VJoy.plg (limited to 'vjoy') diff --git a/vjoy/Debug/VJoy.dll b/vjoy/Debug/VJoy.dll new file mode 100755 index 0000000..a383fd7 Binary files /dev/null and b/vjoy/Debug/VJoy.dll differ diff --git a/vjoy/Debug/VJoy.exe b/vjoy/Debug/VJoy.exe new file mode 100755 index 0000000..52b39a4 Binary files /dev/null and b/vjoy/Debug/VJoy.exe differ diff --git a/vjoy/Debug/VJoy.ilk b/vjoy/Debug/VJoy.ilk new file mode 100755 index 0000000..cd8ac3e Binary files /dev/null and b/vjoy/Debug/VJoy.ilk differ diff --git a/vjoy/Debug/VJoy.pch b/vjoy/Debug/VJoy.pch new file mode 100755 index 0000000..5d895a7 Binary files /dev/null and b/vjoy/Debug/VJoy.pch differ diff --git a/vjoy/Debug/VJoy.pdb b/vjoy/Debug/VJoy.pdb new file mode 100755 index 0000000..a14a32e Binary files /dev/null and b/vjoy/Debug/VJoy.pdb differ diff --git a/vjoy/Debug/vc60.idb b/vjoy/Debug/vc60.idb new file mode 100755 index 0000000..5b1403d Binary files /dev/null and b/vjoy/Debug/vc60.idb differ diff --git a/vjoy/Debug/vc60.pdb b/vjoy/Debug/vc60.pdb new file mode 100755 index 0000000..4e0fc8a Binary files /dev/null and b/vjoy/Debug/vc60.pdb 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 Binary files /dev/null and b/vjoy/VJoy.dll 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 + +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 + +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 Binary files /dev/null and b/vjoy/VJoy.lib differ diff --git a/vjoy/VJoy.ncb b/vjoy/VJoy.ncb new file mode 100755 index 0000000..10acc5b Binary files /dev/null and b/vjoy/VJoy.ncb differ diff --git a/vjoy/VJoy.opt b/vjoy/VJoy.opt new file mode 100755 index 0000000..545a537 Binary files /dev/null and b/vjoy/VJoy.opt 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 @@ + + +
+

Build Log

+

+--------------------Configuration: VJoy - Win32 Debug-------------------- +

+

Command Lines

+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" +

Output Window

+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... + + + +

Results

+VJoy.exe - 0 error(s), 4 warning(s) +
+ + -- cgit v1.2.3