diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2010-10-22 08:48:11 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2010-10-22 08:48:11 +0800 |
commit | 213444d3638b99164c3efcbe2ede8c92303503ea (patch) | |
tree | cd3751455fdce2b9e797a40ea2974d8c6b196185 /Win32 |
Initial import ois 1.2.01.2.0
Diffstat (limited to 'Win32')
-rw-r--r-- | Win32/CommandLine/CommandLine.cbp | 90 | ||||
-rwxr-xr-x | Win32/CommandLine/CommandLine.rc | 99 | ||||
-rwxr-xr-x | Win32/CommandLine/CommandLine.vcproj | 131 | ||||
-rw-r--r-- | Win32/CommandLine/CommandLine_vc8.vcproj | 367 | ||||
-rwxr-xr-x | Win32/CommandLine/resource.h | 17 | ||||
-rw-r--r-- | Win32/DemoFFTest/DemoFFTest.cbp | 82 | ||||
-rw-r--r-- | Win32/DemoFFTest/DemoFFTest.vcproj | 131 | ||||
-rw-r--r-- | Win32/DemoFFTest/DemoFFTest_vc8.vcproj | 367 | ||||
-rw-r--r-- | Win32/DemoFFTest/FF.rc | 99 | ||||
-rw-r--r-- | Win32/DemoFFTest/resource.h | 17 | ||||
-rwxr-xr-x | Win32/OIS.vcproj | 397 | ||||
-rwxr-xr-x | Win32/OIS.workspace | 12 | ||||
-rw-r--r-- | Win32/OIS_vc8.vcproj | 887 | ||||
-rw-r--r-- | Win32/SDL/OIS_sdl_vc8.vcproj | 779 | ||||
-rw-r--r-- | Win32/SDL/SdlDemo/SdlDemo.cpp | 243 | ||||
-rw-r--r-- | Win32/SDL/SdlDemo/SdlDemo.rc | 100 | ||||
-rw-r--r-- | Win32/SDL/SdlDemo/SdlDemo.vcproj | 217 | ||||
-rw-r--r-- | Win32/SDL/SdlDemo/resource.h | 22 | ||||
-rw-r--r-- | Win32/SDL/ois_sdl_vc8.sln | 36 | ||||
-rwxr-xr-x | Win32/ois.cbp | 130 | ||||
-rwxr-xr-x | Win32/ois.sln | 39 | ||||
-rw-r--r-- | Win32/ois_vc8.sln | 51 |
22 files changed, 4313 insertions, 0 deletions
diff --git a/Win32/CommandLine/CommandLine.cbp b/Win32/CommandLine/CommandLine.cbp new file mode 100644 index 0000000..104396d --- /dev/null +++ b/Win32/CommandLine/CommandLine.cbp @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<CodeBlocks_project_file> + <FileVersion major="1" minor="5" /> + <Project> + <Option title="Demo Console" /> + <Option default_target="" /> + <Option compiler="gcc" /> + <Option virtualFolders="" /> + <Build> + <Target title="Debug"> + <Option output="bin\Debug\CommandLine.exe" prefix_auto="0" extension_auto="0" /> + <Option working_dir="bin\Debug" /> + <Option object_output=".\obj\Debug" /> + <Option external_deps="..\lib\libOIS_static_d.a;" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Option projectResourceIncludeDirsRelation="0" /> + <Compiler> + <Add option="-g" /> + <Add option="-O0" /> + <Add option="-D_DEBUG" /> + <Add option="-D_STLP_DEBUG" /> + </Compiler> + <Linker> + <Add library="OIS_static_d" /> + <Add library="dinput8" /> + <Add library="dxguid" /> + </Linker> + </Target> + <Target title="Release"> + <Option output="bin\Release\CommandLine.exe" prefix_auto="0" extension_auto="0" /> + <Option working_dir="bin\Release" /> + <Option object_output=".\obj\Release" /> + <Option external_deps="..\lib\libOIS_static.a;" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Option projectResourceIncludeDirsRelation="0" /> + <Compiler> + <Add option="-O2" /> + <Add option="-DNDEBUG" /> + </Compiler> + <Linker> + <Add option="-s" /> + <Add library="OIS_static" /> + <Add library="dinput8" /> + <Add library="dxguid" /> + </Linker> + </Target> + </Build> + <VirtualTargets> + <Add alias="All" targets="Debug;Release;" /> + </VirtualTargets> + <Compiler> + <Add option="-Wall" /> + <Add option="-mthreads" /> + <Add option="-fmessage-length=0" /> + <Add option="-fexceptions" /> + <Add option="-fident" /> + <Add option="-pipe" /> + <Add option="-DWIN32" /> + <Add option="-D_CONSOLE" /> + <Add directory="..\..\includes" /> + <Add directory="..\CommandLine\" /> + </Compiler> + <Linker> + <Add option="-Wl,--enable-auto-image-base" /> + <Add option="-Wl,--add-stdcall-alias" /> + <Add directory="..\..\lib" /> + </Linker> + <Unit filename="CommandLine.rc"> + <Option compilerVar="WINDRES" /> + <Option objectName="Win32\CommandLine\CommandLine.res" /> + <Option target="Debug" /> + <Option target="Release" /> + </Unit> + <Unit filename="resource.h"> + <Option compilerVar="CPP" /> + <Option compile="0" /> + <Option link="0" /> + <Option target="Debug" /> + <Option target="Release" /> + </Unit> + <Unit filename="..\..\demos\OISConsole.cpp"> + <Option compilerVar="CPP" /> + <Option target="Debug" /> + <Option target="Release" /> + </Unit> + <Extensions /> + </Project> +</CodeBlocks_project_file> diff --git a/Win32/CommandLine/CommandLine.rc b/Win32/CommandLine/CommandLine.rc new file mode 100755 index 0000000..02ff5c5 --- /dev/null +++ b/Win32/CommandLine/CommandLine.rc @@ -0,0 +1,99 @@ +// Microsoft Visual C++ generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#ifndef IDC_STATIC +#define IDC_STATIC (-1) +#endif +#include "winresrc.h" +//#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (U.S.) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_DIALOG1 DIALOGEX 0, 0, 100, 100 +STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION +CAPTION "Capture Window" +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN + LTEXT "This window is used as Input Capture Window, and to display some info. Press Q or ESC to exit or hit button 1 of joystick", + IDC_STATIC,7,7,82,86 +END + + +///////////////////////////////////////////////////////////////////////////// +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO +BEGIN + IDD_DIALOG1, DIALOG + BEGIN + LEFTMARGIN, 7 + TOPMARGIN, 7 + END +END +#endif // APSTUDIO_INVOKED + +#endif // English (U.S.) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/Win32/CommandLine/CommandLine.vcproj b/Win32/CommandLine/CommandLine.vcproj new file mode 100755 index 0000000..8990460 --- /dev/null +++ b/Win32/CommandLine/CommandLine.vcproj @@ -0,0 +1,131 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="7.10" + Name="Demo_Console" + ProjectGUID="{7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}" + Keyword="Win32Proj"> + <Platforms> + <Platform + Name="Win32"/> + </Platforms> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="Debug" + IntermediateDirectory="Debug" + ConfigurationType="1" + CharacterSet="2"> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\includes;..\CommandLine\" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_STLP_DEBUG" + MinimalRebuild="TRUE" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="TRUE" + DebugInformationFormat="4"/> + <Tool + Name="VCCustomBuildTool"/> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois_static_d.lib" + OutputFile="$(OutDir)/CommandLine.exe" + LinkIncremental="2" + AdditionalLibraryDirectories="..\..\lib;..\..\src\win32\extras\WiiMote\" + GenerateDebugInformation="TRUE" + ProgramDatabaseFile="$(OutDir)/CommandLine.pdb" + SubSystem="1" + TargetMachine="1"/> + <Tool + Name="VCMIDLTool"/> + <Tool + Name="VCPostBuildEventTool"/> + <Tool + Name="VCPreBuildEventTool"/> + <Tool + Name="VCPreLinkEventTool"/> + <Tool + Name="VCResourceCompilerTool"/> + <Tool + Name="VCWebServiceProxyGeneratorTool"/> + <Tool + Name="VCXMLDataGeneratorTool"/> + <Tool + Name="VCWebDeploymentTool"/> + <Tool + Name="VCManagedWrapperGeneratorTool"/> + <Tool + Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="Release" + IntermediateDirectory="Release" + ConfigurationType="1" + CharacterSet="2"> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="TRUE" + AdditionalIncludeDirectories="..\..\includes;..\CommandLine\" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + StringPooling="TRUE" + RuntimeLibrary="2" + EnableFunctionLevelLinking="TRUE" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="TRUE" + DebugInformationFormat="3"/> + <Tool + Name="VCCustomBuildTool"/> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois_static.lib" + OutputFile="$(OutDir)/CommandLine.exe" + LinkIncremental="1" + AdditionalLibraryDirectories="..\..\lib;..\..\src\win32\extras\WiiMote\" + GenerateDebugInformation="TRUE" + SubSystem="1" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1"/> + <Tool + Name="VCMIDLTool"/> + <Tool + Name="VCPostBuildEventTool"/> + <Tool + Name="VCPreBuildEventTool"/> + <Tool + Name="VCPreLinkEventTool"/> + <Tool + Name="VCResourceCompilerTool"/> + <Tool + Name="VCWebServiceProxyGeneratorTool"/> + <Tool + Name="VCXMLDataGeneratorTool"/> + <Tool + Name="VCWebDeploymentTool"/> + <Tool + Name="VCManagedWrapperGeneratorTool"/> + <Tool + Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <File + RelativePath="CommandLine.rc"> + </File> + <File + RelativePath="..\..\demos\OISConsole.cpp"> + </File> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/Win32/CommandLine/CommandLine_vc8.vcproj b/Win32/CommandLine/CommandLine_vc8.vcproj new file mode 100644 index 0000000..c6bcdce --- /dev/null +++ b/Win32/CommandLine/CommandLine_vc8.vcproj @@ -0,0 +1,367 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="Demo_Console" + ProjectGUID="{7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + <Platform + Name="x64" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="Debug" + IntermediateDirectory="Debug" + ConfigurationType="1" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\includes;..\CommandLine\" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_STLP_DEBUG" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois_static_d.lib" + OutputFile="$(OutDir)/CommandLine.exe" + LinkIncremental="2" + AdditionalLibraryDirectories="..\..\lib;..\..\src\win32\extras\WiiMote" + GenerateDebugInformation="true" + ProgramDatabaseFile="$(OutDir)/CommandLine.pdb" + SubSystem="1" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Debug|x64" + OutputDirectory="$(PlatformName)\$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" + ConfigurationType="1" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\includes;..\CommandLine\" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_STLP_DEBUG" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois_d.lib" + OutputFile="$(OutDir)/CommandLine.exe" + LinkIncremental="2" + AdditionalLibraryDirectories="..\..\lib64" + GenerateDebugInformation="true" + ProgramDatabaseFile="$(OutDir)/CommandLine.pdb" + SubSystem="1" + TargetMachine="17" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="Release" + IntermediateDirectory="Release" + ConfigurationType="1" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="true" + AdditionalIncludeDirectories="..\..\includes;..\CommandLine\" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + StringPooling="true" + RuntimeLibrary="2" + EnableFunctionLevelLinking="true" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois_static.lib" + OutputFile="$(OutDir)/CommandLine.exe" + LinkIncremental="1" + AdditionalLibraryDirectories="..\..\lib;..\..\src\win32\extras\WiiMote" + GenerateDebugInformation="true" + SubSystem="1" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Release|x64" + OutputDirectory="$(PlatformName)\$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" + ConfigurationType="1" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="true" + AdditionalIncludeDirectories="..\..\includes;..\CommandLine\" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + StringPooling="true" + RuntimeLibrary="2" + EnableFunctionLevelLinking="true" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois.lib" + OutputFile="$(OutDir)/CommandLine.exe" + LinkIncremental="1" + AdditionalLibraryDirectories="..\..\lib64" + GenerateDebugInformation="true" + SubSystem="1" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="17" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <File + RelativePath="CommandLine.rc" + > + </File> + <File + RelativePath="..\..\demos\OISConsole.cpp" + > + </File> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/Win32/CommandLine/resource.h b/Win32/CommandLine/resource.h new file mode 100755 index 0000000..9ab3414 --- /dev/null +++ b/Win32/CommandLine/resource.h @@ -0,0 +1,17 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by CommandLine.rc +// +#define IDD_DIALOG1 101 +#define IDC_BUTTON1 1001 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1002 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/Win32/DemoFFTest/DemoFFTest.cbp b/Win32/DemoFFTest/DemoFFTest.cbp new file mode 100644 index 0000000..6bb5bff --- /dev/null +++ b/Win32/DemoFFTest/DemoFFTest.cbp @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<CodeBlocks_project_file> + <FileVersion major="1" minor="5" /> + <Project> + <Option title="Demo FFTest" /> + <Option default_target="" /> + <Option compiler="gcc" /> + <Option virtualFolders="" /> + <Build> + <Target title="Debug"> + <Option output=".\bin\Debug\DemoFFTest.exe" prefix_auto="0" extension_auto="0" /> + <Option working_dir=".\bin\Debug" /> + <Option object_output=".\obj\Debug" /> + <Option external_deps="..\lib\libOIS_static_d.a;" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Option projectResourceIncludeDirsRelation="0" /> + <Compiler> + <Add option="-g" /> + <Add option="-O0" /> + <Add option="-D_DEBUG" /> + </Compiler> + <Linker> + <Add library="OIS_static_d" /> + <Add library="dxguid" /> + <Add library="dinput8" /> + </Linker> + </Target> + <Target title="Release"> + <Option output=".\bin\Release\DemoFFTest.exe" prefix_auto="0" extension_auto="0" /> + <Option working_dir=".\bin\Release" /> + <Option object_output=".\obj\Release" /> + <Option external_deps="..\lib\libOIS_static.a;" /> + <Option type="1" /> + <Option compiler="gcc" /> + <Option projectResourceIncludeDirsRelation="0" /> + <Compiler> + <Add option="-O2" /> + <Add option="-DNDEBUG" /> + </Compiler> + <Linker> + <Add option="-s" /> + <Add library="OIS_static" /> + <Add library="dxguid" /> + <Add library="dinput8" /> + </Linker> + </Target> + </Build> + <VirtualTargets> + <Add alias="All" targets="Debug;Release;" /> + </VirtualTargets> + <Compiler> + <Add option="-Wall" /> + <Add option="-mthreads" /> + <Add option="-fmessage-length=0" /> + <Add option="-fexceptions" /> + <Add option="-fident" /> + <Add option="-pipe" /> + <Add option="-DWIN32" /> + <Add option="-D_CONSOLE" /> + <Add directory="..\..\includes" /> + <Add directory="..\DemoFFTest" /> + </Compiler> + <Linker> + <Add option="-Wl,--enable-auto-image-base" /> + <Add option="-Wl,--add-stdcall-alias" /> + <Add directory="..\..\lib" /> + </Linker> + <Unit filename="FF.rc"> + <Option compilerVar="WINDRES" /> + <Option objectName="Win32\DemoFFTest\FF.res" /> + <Option target="Debug" /> + <Option target="Release" /> + </Unit> + <Unit filename="..\..\demos\FFConsoleDemo.cpp"> + <Option compilerVar="CPP" /> + <Option target="Debug" /> + <Option target="Release" /> + </Unit> + <Extensions /> + </Project> +</CodeBlocks_project_file> diff --git a/Win32/DemoFFTest/DemoFFTest.vcproj b/Win32/DemoFFTest/DemoFFTest.vcproj new file mode 100644 index 0000000..ad6b1a0 --- /dev/null +++ b/Win32/DemoFFTest/DemoFFTest.vcproj @@ -0,0 +1,131 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="7.10" + Name="Demo_FFTest" + ProjectGUID="{D1912D13-C99D-4959-ABDC-62BF71AD5A1A}" + Keyword="Win32Proj"> + <Platforms> + <Platform + Name="Win32"/> + </Platforms> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="Debug" + IntermediateDirectory="Debug" + ConfigurationType="1" + CharacterSet="2"> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\includes;..\DemoFFTest" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_STLP_DEBUG" + MinimalRebuild="TRUE" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="TRUE" + DebugInformationFormat="4"/> + <Tool + Name="VCCustomBuildTool"/> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois_d.lib" + OutputFile="$(OutDir)/DemoFFTest.exe" + LinkIncremental="2" + AdditionalLibraryDirectories="..\..\dll" + GenerateDebugInformation="TRUE" + ProgramDatabaseFile="$(OutDir)/DemoFFTest.pdb" + SubSystem="1" + TargetMachine="1"/> + <Tool + Name="VCMIDLTool"/> + <Tool + Name="VCPostBuildEventTool"/> + <Tool + Name="VCPreBuildEventTool"/> + <Tool + Name="VCPreLinkEventTool"/> + <Tool + Name="VCResourceCompilerTool"/> + <Tool + Name="VCWebServiceProxyGeneratorTool"/> + <Tool + Name="VCXMLDataGeneratorTool"/> + <Tool + Name="VCWebDeploymentTool"/> + <Tool + Name="VCManagedWrapperGeneratorTool"/> + <Tool + Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="Release" + IntermediateDirectory="Release" + ConfigurationType="1" + CharacterSet="2"> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="TRUE" + AdditionalIncludeDirectories="..\..\includes;..\DemoFFTest" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + StringPooling="TRUE" + RuntimeLibrary="2" + EnableFunctionLevelLinking="TRUE" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="TRUE" + DebugInformationFormat="3"/> + <Tool + Name="VCCustomBuildTool"/> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois.lib" + OutputFile="$(OutDir)/DemoFFTest.exe" + LinkIncremental="1" + AdditionalLibraryDirectories="..\..\dll" + GenerateDebugInformation="TRUE" + SubSystem="1" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1"/> + <Tool + Name="VCMIDLTool"/> + <Tool + Name="VCPostBuildEventTool"/> + <Tool + Name="VCPreBuildEventTool"/> + <Tool + Name="VCPreLinkEventTool"/> + <Tool + Name="VCResourceCompilerTool"/> + <Tool + Name="VCWebServiceProxyGeneratorTool"/> + <Tool + Name="VCXMLDataGeneratorTool"/> + <Tool + Name="VCWebDeploymentTool"/> + <Tool + Name="VCManagedWrapperGeneratorTool"/> + <Tool + Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <File + RelativePath="FF.rc"> + </File> + <File + RelativePath="..\..\demos\FFConsoleDemo.cpp"> + </File> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/Win32/DemoFFTest/DemoFFTest_vc8.vcproj b/Win32/DemoFFTest/DemoFFTest_vc8.vcproj new file mode 100644 index 0000000..1b57a9b --- /dev/null +++ b/Win32/DemoFFTest/DemoFFTest_vc8.vcproj @@ -0,0 +1,367 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="Demo_FFTest" + ProjectGUID="{D1912D13-C99D-4959-ABDC-62BF71AD5A1A}" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + <Platform + Name="x64" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="Debug" + IntermediateDirectory="Debug" + ConfigurationType="1" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\includes;..\DemoFFTest" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_STLP_DEBUG" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois_d.lib" + OutputFile="$(OutDir)/DemoFFTest.exe" + LinkIncremental="2" + AdditionalLibraryDirectories="..\..\dll;..\..\src\win32\extras\WiiMote" + GenerateDebugInformation="true" + ProgramDatabaseFile="$(OutDir)/DemoFFTest.pdb" + SubSystem="1" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Debug|x64" + OutputDirectory="$(PlatformName)\$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" + ConfigurationType="1" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\includes;..\DemoFFTest" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_STLP_DEBUG" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois_d.lib" + OutputFile="$(OutDir)/DemoFFTest.exe" + LinkIncremental="2" + AdditionalLibraryDirectories="..\..\lib64" + GenerateDebugInformation="true" + ProgramDatabaseFile="$(OutDir)/DemoFFTest.pdb" + SubSystem="1" + TargetMachine="17" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="Release" + IntermediateDirectory="Release" + ConfigurationType="1" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="true" + AdditionalIncludeDirectories="..\..\includes;..\DemoFFTest" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + StringPooling="true" + RuntimeLibrary="2" + EnableFunctionLevelLinking="true" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois.lib" + OutputFile="$(OutDir)/DemoFFTest.exe" + LinkIncremental="1" + AdditionalLibraryDirectories="..\..\dll;..\..\src\win32\extras\WiiMote" + GenerateDebugInformation="true" + SubSystem="1" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Release|x64" + OutputDirectory="$(PlatformName)\$(ConfigurationName)" + IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" + ConfigurationType="1" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="true" + AdditionalIncludeDirectories="..\..\includes;..\DemoFFTest" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + StringPooling="true" + RuntimeLibrary="2" + EnableFunctionLevelLinking="true" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="ois.lib" + OutputFile="$(OutDir)/DemoFFTest.exe" + LinkIncremental="1" + AdditionalLibraryDirectories="..\..\lib64" + GenerateDebugInformation="true" + SubSystem="1" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="17" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <File + RelativePath="FF.rc" + > + </File> + <File + RelativePath="..\..\demos\FFConsoleDemo.cpp" + > + </File> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/Win32/DemoFFTest/FF.rc b/Win32/DemoFFTest/FF.rc new file mode 100644 index 0000000..72b4f9f --- /dev/null +++ b/Win32/DemoFFTest/FF.rc @@ -0,0 +1,99 @@ +// Microsoft Visual C++ generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +//#include "afxres.h" +#ifndef IDC_STATIC +#define IDC_STATIC (-1) +#endif +#include "winresrc.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (U.S.) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_DIALOG1 DIALOGEX 0, 0, 100, 100 +STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION +CAPTION "Capture Window" +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN + LTEXT "This window is used as Input Capture Window, and to display some info. Press Q or ESC to exit or hit button 1 of joystick", + IDC_STATIC,7,7,82,86 +END + + +///////////////////////////////////////////////////////////////////////////// +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO +BEGIN + IDD_DIALOG1, DIALOG + BEGIN + LEFTMARGIN, 7 + TOPMARGIN, 7 + END +END +#endif // APSTUDIO_INVOKED + +#endif // English (U.S.) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/Win32/DemoFFTest/resource.h b/Win32/DemoFFTest/resource.h new file mode 100644 index 0000000..9ab3414 --- /dev/null +++ b/Win32/DemoFFTest/resource.h @@ -0,0 +1,17 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by CommandLine.rc +// +#define IDD_DIALOG1 101 +#define IDC_BUTTON1 1001 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1002 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/Win32/OIS.vcproj b/Win32/OIS.vcproj new file mode 100755 index 0000000..c5d8b1e --- /dev/null +++ b/Win32/OIS.vcproj @@ -0,0 +1,397 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="7.10" + Name="OIS" + ProjectGUID="{9CC704CB-4956-4479-BDEC-57CBC03F700E}" + RootNamespace="OIS" + Keyword="Win32Proj"> + <Platforms> + <Platform + Name="Win32"/> + </Platforms> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="..\lib" + IntermediateDirectory="..\lib\obj\debug" + ConfigurationType="4" + CharacterSet="2"> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_STLP_DEBUG" + MinimalRebuild="TRUE" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + RuntimeTypeInfo="TRUE" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="StdAfx.h" + WarningLevel="3" + Detect64BitPortabilityProblems="TRUE" + DebugInformationFormat="4" + CallingConvention="0"/> + <Tool + Name="VCCustomBuildTool"/> + <Tool + Name="VCLibrarianTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS_static_d.lib" + AdditionalLibraryDirectories="..\src\win32\extras\WiiMote\"/> + <Tool + Name="VCMIDLTool"/> + <Tool + Name="VCPostBuildEventTool"/> + <Tool + Name="VCPreBuildEventTool"/> + <Tool + Name="VCPreLinkEventTool"/> + <Tool + Name="VCResourceCompilerTool"/> + <Tool + Name="VCWebServiceProxyGeneratorTool"/> + <Tool + Name="VCXMLDataGeneratorTool"/> + <Tool + Name="VCManagedWrapperGeneratorTool"/> + <Tool + Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="..\lib" + IntermediateDirectory="..\lib\obj\release" + ConfigurationType="4" + CharacterSet="2"> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="TRUE" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;NDEBUG;_LIB" + StringPooling="TRUE" + RuntimeLibrary="2" + EnableFunctionLevelLinking="TRUE" + RuntimeTypeInfo="TRUE" + UsePrecompiledHeader="0" + PrecompiledHeaderFile="$(IntDir)/$(TargetName).pch" + WarningLevel="3" + Detect64BitPortabilityProblems="TRUE" + DebugInformationFormat="3"/> + <Tool + Name="VCCustomBuildTool"/> + <Tool + Name="VCLibrarianTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS_static.lib" + AdditionalLibraryDirectories="..\src\win32\extras\WiiMote\"/> + <Tool + Name="VCMIDLTool"/> + <Tool + Name="VCPostBuildEventTool"/> + <Tool + Name="VCPreBuildEventTool"/> + <Tool + Name="VCPreLinkEventTool"/> + <Tool + Name="VCResourceCompilerTool"/> + <Tool + Name="VCWebServiceProxyGeneratorTool"/> + <Tool + Name="VCXMLDataGeneratorTool"/> + <Tool + Name="VCManagedWrapperGeneratorTool"/> + <Tool + Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + </Configuration> + <Configuration + Name="OIS_ReleaseDll|Win32" + OutputDirectory="..\dll" + IntermediateDirectory="..\dll\release" + ConfigurationType="2" + CharacterSet="2"> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="TRUE" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;NDEBUG;OIS_NONCLIENT_BUILD;OIS_DYNAMIC_LIB" + StringPooling="TRUE" + RuntimeLibrary="2" + EnableFunctionLevelLinking="TRUE" + RuntimeTypeInfo="TRUE" + UsePrecompiledHeader="0" + PrecompiledHeaderFile="$(IntDir)/$(TargetName).pch" + WarningLevel="3" + Detect64BitPortabilityProblems="TRUE" + DebugInformationFormat="3"/> + <Tool + Name="VCCustomBuildTool"/> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + AdditionalLibraryDirectories="..\src\win32\extras\WiiMote\"/> + <Tool + Name="VCMIDLTool"/> + <Tool + Name="VCPostBuildEventTool"/> + <Tool + Name="VCPreBuildEventTool"/> + <Tool + Name="VCPreLinkEventTool"/> + <Tool + Name="VCResourceCompilerTool"/> + <Tool + Name="VCWebServiceProxyGeneratorTool"/> + <Tool + Name="VCXMLDataGeneratorTool"/> + <Tool + Name="VCWebDeploymentTool"/> + <Tool + Name="VCManagedWrapperGeneratorTool"/> + <Tool + Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + </Configuration> + <Configuration + Name="OIS_DebugDll|Win32" + OutputDirectory="..\dll" + IntermediateDirectory="..\dll\debug" + ConfigurationType="2" + CharacterSet="2"> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;_DEBUG;_STLP_DEBUG;OIS_NONCLIENT_BUILD;OIS_DYNAMIC_LIB" + MinimalRebuild="TRUE" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + RuntimeTypeInfo="TRUE" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="StdAfx.h" + WarningLevel="3" + Detect64BitPortabilityProblems="TRUE" + DebugInformationFormat="4" + CallingConvention="0"/> + <Tool + Name="VCCustomBuildTool"/> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS_d.dll" + AdditionalLibraryDirectories="..\src\win32\extras\WiiMote\"/> + <Tool + Name="VCMIDLTool"/> + <Tool + Name="VCPostBuildEventTool"/> + <Tool + Name="VCPreBuildEventTool"/> + <Tool + Name="VCPreLinkEventTool"/> + <Tool + Name="VCResourceCompilerTool"/> + <Tool + Name="VCWebServiceProxyGeneratorTool"/> + <Tool + Name="VCXMLDataGeneratorTool"/> + <Tool + Name="VCWebDeploymentTool"/> + <Tool + Name="VCManagedWrapperGeneratorTool"/> + <Tool + Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm"> + <File + RelativePath="..\src\OISEffect.cpp"> + </File> + <File + RelativePath="..\src\OISException.cpp"> + </File> + <File + RelativePath="..\src\OISForceFeedback.cpp"> + </File> + <File + RelativePath="..\src\OISInputManager.cpp"> + </File> + <File + RelativePath="..\src\OISJoyStick.cpp"> + </File> + <File + RelativePath="..\src\OISKeyboard.cpp"> + </File> + <File + RelativePath="..\src\OISObject.cpp"> + </File> + <Filter + Name="Win32" + Filter=""> + <File + RelativePath="..\src\win32\Win32ForceFeedback.cpp"> + </File> + <File + RelativePath="..\src\win32\Win32InputManager.cpp"> + </File> + <File + RelativePath="..\src\win32\Win32JoyStick.cpp"> + </File> + <File + RelativePath="..\src\win32\Win32KeyBoard.cpp"> + </File> + <File + RelativePath="..\src\win32\Win32Mouse.cpp"> + </File> + </Filter> + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl;inc"> + <File + RelativePath="..\includes\OIS.h"> + </File> + <File + RelativePath="..\includes\OISConfig.h"> + </File> + <File + RelativePath="..\includes\OISEvents.h"> + </File> + <File + RelativePath="..\includes\OISException.h"> + </File> + <File + RelativePath="..\includes\OISFactoryCreator.h"> + </File> + <File + RelativePath="..\includes\OISInputManager.h"> + </File> + <File + RelativePath="..\includes\OISJoystick.h"> + </File> + <File + RelativePath="..\includes\OISKeyboard.h"> + </File> + <File + RelativePath="..\includes\OISMouse.h"> + </File> + <File + RelativePath="..\includes\OISObject.h"> + </File> + <File + RelativePath="..\includes\OISPrereqs.h"> + </File> + <Filter + Name="Win32" + Filter=""> + <File + RelativePath="..\includes\win32\Win32ForceFeedback.h"> + </File> + <File + RelativePath="..\includes\win32\Win32InputManager.h"> + </File> + <File + RelativePath="..\includes\win32\Win32JoyStick.h"> + </File> + <File + RelativePath="..\includes\win32\Win32KeyBoard.h"> + </File> + <File + RelativePath="..\includes\win32\Win32Mouse.h"> + </File> + <File + RelativePath="..\includes\win32\Win32Prereqs.h"> + </File> + </Filter> + <Filter + Name="Interface" + Filter=""> + <File + RelativePath="..\includes\OISEffect.h"> + </File> + <File + RelativePath="..\includes\OISForceFeedback.h"> + </File> + <File + RelativePath="..\includes\OISInterface.h"> + </File> + </Filter> + </Filter> + <Filter + Name="extras" + Filter=""> + <Filter + Name="WiiMote" + Filter=""> + <File + RelativePath="..\src\win32\extras\WiiMote\hiddevice.cpp"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\hiddevice.h"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMote.cpp"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMote.h"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteFactoryCreator.cpp"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteFactoryCreator.h"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteForceFeedback.cpp"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteForceFeedback.h"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteRingBuffer.cpp"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteRingBuffer.h"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\wiimote.cpp"> + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\wiimote.h"> + </File> + </Filter> + <Filter + Name="XInput" + Filter=""> + </Filter> + <Filter + Name="LIRC" + Filter=""> + <File + RelativePath="..\src\extras\Lirc\OISLIRC.cpp"> + </File> + <File + RelativePath="..\src\extras\Lirc\OISLIRC.h"> + </File> + <File + RelativePath="..\src\extras\Lirc\OISLIRCFactoryCreator.cpp"> + </File> + <File + RelativePath="..\src\extras\Lirc\OISLIRCFactoryCreator.h"> + </File> + <File + RelativePath="..\src\extras\Lirc\OISLIRCRingBuffer.h"> + </File> + </Filter> + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/Win32/OIS.workspace b/Win32/OIS.workspace new file mode 100755 index 0000000..6c4756e --- /dev/null +++ b/Win32/OIS.workspace @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<CodeBlocks_workspace_file> + <Workspace title="ois workspace"> + <Project filename="ois.cbp" active="1" /> + <Project filename="DemoFFTest\DemoFFTest.cbp"> + <Depends filename="ois.cbp" /> + </Project> + <Project filename="CommandLine\CommandLine.cbp"> + <Depends filename="ois.cbp" /> + </Project> + </Workspace> +</CodeBlocks_workspace_file> diff --git a/Win32/OIS_vc8.vcproj b/Win32/OIS_vc8.vcproj new file mode 100644 index 0000000..db230eb --- /dev/null +++ b/Win32/OIS_vc8.vcproj @@ -0,0 +1,887 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="OIS" + ProjectGUID="{9CC704CB-4956-4479-BDEC-57CBC03F700E}" + RootNamespace="OIS" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + <Platform + Name="x64" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="..\lib" + IntermediateDirectory="..\lib\obj\debug" + ConfigurationType="4" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\includes; ..\src" + PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_STLP_DEBUG" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="StdAfx.h" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + CallingConvention="0" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLibrarianTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS_static_d.lib" + AdditionalLibraryDirectories="..\src\win32\extras\WiiMote" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Debug|x64" + OutputDirectory="..\lib64\" + IntermediateDirectory="..\lib64\obj\$(ConfigurationName)" + ConfigurationType="4" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_STLP_DEBUG" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="StdAfx.h" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + CallingConvention="0" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLibrarianTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS_d.lib" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="..\lib" + IntermediateDirectory="..\lib\obj\release" + ConfigurationType="4" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="true" + AdditionalIncludeDirectories="..\includes; ..\src" + PreprocessorDefinitions="WIN32;NDEBUG;_LIB" + StringPooling="true" + RuntimeLibrary="2" + BufferSecurityCheck="false" + EnableFunctionLevelLinking="false" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderFile="$(IntDir)/$(TargetName).pch" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLibrarianTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS_static.lib" + AdditionalLibraryDirectories="..\src\win32\extras\WiiMote" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Release|x64" + OutputDirectory="..\lib64\" + IntermediateDirectory="..\lib64\obj\$(ConfigurationName)" + ConfigurationType="4" + CharacterSet="2" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + FavorSizeOrSpeed="1" + OmitFramePointers="true" + EnableFiberSafeOptimizations="true" + WholeProgramOptimization="true" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;NDEBUG;_LIB" + StringPooling="true" + RuntimeLibrary="2" + EnableFunctionLevelLinking="true" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderFile="$(IntDir)/$(TargetName).pch" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLibrarianTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS.lib" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="OIS_ReleaseDll|Win32" + OutputDirectory="..\dll" + IntermediateDirectory="..\dll\release" + ConfigurationType="2" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="true" + AdditionalIncludeDirectories="..\includes; ..\src" + PreprocessorDefinitions="WIN32;NDEBUG;OIS_NONCLIENT_BUILD;OIS_DYNAMIC_LIB" + StringPooling="true" + RuntimeLibrary="2" + BufferSecurityCheck="false" + EnableFunctionLevelLinking="false" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderFile="$(IntDir)/$(TargetName).pch" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + AdditionalLibraryDirectories="..\src\win32\extras\WiiMote\" + GenerateDebugInformation="false" + OptimizeReferences="2" + EnableCOMDATFolding="2" + OptimizeForWindows98="1" + LinkTimeCodeGeneration="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="OIS_ReleaseDll|x64" + OutputDirectory="..\dll64" + IntermediateDirectory="..\dll64\$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="2" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + FavorSizeOrSpeed="1" + OmitFramePointers="true" + EnableFiberSafeOptimizations="true" + WholeProgramOptimization="true" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;NDEBUG;OIS_NONCLIENT_BUILD;OIS_DYNAMIC_LIB" + StringPooling="true" + RuntimeLibrary="2" + EnableFunctionLevelLinking="true" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderFile="$(IntDir)/$(TargetName).pch" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + GenerateDebugInformation="true" + TargetMachine="17" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="OIS_DebugDll|Win32" + OutputDirectory="..\dll" + IntermediateDirectory="..\dll\debug" + ConfigurationType="2" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\includes; ..\src" + PreprocessorDefinitions="WIN32;_DEBUG;_STLP_DEBUG;OIS_NONCLIENT_BUILD;OIS_DYNAMIC_LIB" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="StdAfx.h" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + CallingConvention="0" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS_d.dll" + AdditionalLibraryDirectories="..\src\win32\extras\WiiMote\" + GenerateDebugInformation="true" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="OIS_DebugDll|x64" + OutputDirectory="..\dll64" + IntermediateDirectory="..\dll64\$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;_DEBUG;_STLP_DEBUG;OIS_NONCLIENT_BUILD;OIS_DYNAMIC_LIB" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="StdAfx.h" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + CallingConvention="0" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS_d.dll" + TargetMachine="17" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm" + > + <File + RelativePath="..\src\OISEffect.cpp" + > + </File> + <File + RelativePath="..\src\OISException.cpp" + > + </File> + <File + RelativePath="..\src\OISForceFeedback.cpp" + > + </File> + <File + RelativePath="..\src\OISInputManager.cpp" + > + </File> + <File + RelativePath="..\src\OISJoyStick.cpp" + > + </File> + <File + RelativePath="..\src\OISKeyboard.cpp" + > + </File> + <File + RelativePath="..\src\OISObject.cpp" + > + </File> + <Filter + Name="Win32" + > + <File + RelativePath="..\src\win32\Win32ForceFeedback.cpp" + > + </File> + <File + RelativePath="..\src\win32\Win32InputManager.cpp" + > + </File> + <File + RelativePath="..\src\win32\Win32JoyStick.cpp" + > + </File> + <File + RelativePath="..\src\win32\Win32KeyBoard.cpp" + > + </File> + <File + RelativePath="..\src\win32\Win32Mouse.cpp" + > + </File> + </Filter> + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl;inc" + > + <File + RelativePath="..\includes\OIS.h" + > + </File> + <File + RelativePath="..\includes\OISConfig.h" + > + </File> + <File + RelativePath="..\includes\OISEvents.h" + > + </File> + <File + RelativePath="..\includes\OISException.h" + > + </File> + <File + RelativePath="..\includes\OISFactoryCreator.h" + > + </File> + <File + RelativePath="..\includes\OISInputManager.h" + > + </File> + <File + RelativePath="..\includes\OISJoystick.h" + > + </File> + <File + RelativePath="..\includes\OISKeyboard.h" + > + </File> + <File + RelativePath="..\includes\OISMouse.h" + > + </File> + <File + RelativePath="..\includes\OISObject.h" + > + </File> + <File + RelativePath="..\includes\OISPrereqs.h" + > + </File> + <Filter + Name="Win32" + > + <File + RelativePath="..\includes\win32\Win32ForceFeedback.h" + > + </File> + <File + RelativePath="..\includes\win32\Win32InputManager.h" + > + </File> + <File + RelativePath="..\includes\win32\Win32JoyStick.h" + > + </File> + <File + RelativePath="..\includes\win32\Win32KeyBoard.h" + > + </File> + <File + RelativePath="..\includes\win32\Win32Mouse.h" + > + </File> + <File + RelativePath="..\includes\win32\Win32Prereqs.h" + > + </File> + </Filter> + <Filter + Name="Interface" + > + <File + RelativePath="..\includes\OISEffect.h" + > + </File> + <File + RelativePath="..\includes\OISForceFeedback.h" + > + </File> + <File + RelativePath="..\includes\OISInterface.h" + > + </File> + </Filter> + </Filter> + <Filter + Name="Extras" + > + <Filter + Name="WiiMote" + > + <File + RelativePath="..\src\win32\extras\WiiMote\hiddevice.cpp" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\hiddevice.h" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMote.cpp" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMote.h" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteFactoryCreator.cpp" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteFactoryCreator.h" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteForceFeedback.cpp" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteForceFeedback.h" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteRingBuffer.cpp" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\OISWiiMoteRingBuffer.h" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\wiimote.cpp" + > + </File> + <File + RelativePath="..\src\win32\extras\WiiMote\wiimote.h" + > + </File> + </Filter> + <Filter + Name="LIRC" + > + <File + RelativePath="..\src\extras\LIRC\OISLIRC.cpp" + > + </File> + <File + RelativePath="..\src\extras\LIRC\OISLIRC.h" + > + </File> + <File + RelativePath="..\src\extras\LIRC\OISLIRCFactoryCreator.cpp" + > + </File> + <File + RelativePath="..\src\extras\LIRC\OISLIRCFactoryCreator.h" + > + </File> + <File + RelativePath="..\src\extras\LIRC\OISLIRCRingBuffer.h" + > + </File> + </Filter> + <Filter + Name="XInput" + > + </Filter> + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/Win32/SDL/OIS_sdl_vc8.vcproj b/Win32/SDL/OIS_sdl_vc8.vcproj new file mode 100644 index 0000000..620a6c0 --- /dev/null +++ b/Win32/SDL/OIS_sdl_vc8.vcproj @@ -0,0 +1,779 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="OIS" + ProjectGUID="{9BC704CB-4956-4479-BDEC-57CBC03F700E}" + RootNamespace="OIS" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + <Platform + Name="x64" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="..\..\lib" + IntermediateDirectory="obj\debug" + ConfigurationType="4" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\includes" + PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_STLP_DEBUG;OIS_SDL_PLATFORM" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="StdAfx.h" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + CallingConvention="0" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLibrarianTool" + AdditionalDependencies="SDL.lib" + OutputFile="$(OutDir)/OIS-SDL_static_d.lib" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Debug|x64" + OutputDirectory="..\lib64\" + IntermediateDirectory="..\lib64\obj\$(ConfigurationName)" + ConfigurationType="4" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_STLP_DEBUG" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="StdAfx.h" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + CallingConvention="0" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLibrarianTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS_d.lib" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="..\..\lib" + IntermediateDirectory="obj\release" + ConfigurationType="4" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="true" + AdditionalIncludeDirectories="..\..\includes" + PreprocessorDefinitions="WIN32;NDEBUG;_LIB;OIS_SDL_PLATFORM" + StringPooling="true" + RuntimeLibrary="2" + BufferSecurityCheck="false" + EnableFunctionLevelLinking="false" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderFile="$(IntDir)/$(TargetName).pch" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLibrarianTool" + AdditionalDependencies="SDL.lib" + OutputFile="$(OutDir)/OIS-SDL_static.lib" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="Release|x64" + OutputDirectory="..\lib64\" + IntermediateDirectory="..\lib64\obj\$(ConfigurationName)" + ConfigurationType="4" + CharacterSet="2" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + FavorSizeOrSpeed="1" + OmitFramePointers="true" + EnableFiberSafeOptimizations="true" + WholeProgramOptimization="true" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;NDEBUG;_LIB" + StringPooling="true" + RuntimeLibrary="2" + EnableFunctionLevelLinking="true" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderFile="$(IntDir)/$(TargetName).pch" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLibrarianTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS.lib" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="OIS_ReleaseDll|Win32" + OutputDirectory="..\..\dll" + IntermediateDirectory="dll\release" + ConfigurationType="2" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + OmitFramePointers="true" + AdditionalIncludeDirectories="..\..\includes" + PreprocessorDefinitions="WIN32;NDEBUG;OIS_NONCLIENT_BUILD;OIS_DYNAMIC_LIB;OIS_SDL_PLATFORM" + StringPooling="true" + RuntimeLibrary="2" + BufferSecurityCheck="false" + EnableFunctionLevelLinking="false" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderFile="$(IntDir)/$(TargetName).pch" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="SDL.lib" + OutputFile="$(OutDir)\$(ProjectName)-SDL.dll" + GenerateDebugInformation="true" + OptimizeReferences="2" + EnableCOMDATFolding="2" + OptimizeForWindows98="1" + LinkTimeCodeGeneration="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="OIS_ReleaseDll|x64" + OutputDirectory="..\dll64" + IntermediateDirectory="..\dll64\$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="2" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + FavorSizeOrSpeed="1" + OmitFramePointers="true" + EnableFiberSafeOptimizations="true" + WholeProgramOptimization="true" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;NDEBUG;OIS_NONCLIENT_BUILD;OIS_DYNAMIC_LIB" + StringPooling="true" + RuntimeLibrary="2" + EnableFunctionLevelLinking="true" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderFile="$(IntDir)/$(TargetName).pch" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + GenerateDebugInformation="true" + TargetMachine="17" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="OIS_DebugDll|Win32" + OutputDirectory="..\..\dll" + IntermediateDirectory="dll\debug" + ConfigurationType="2" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\includes" + PreprocessorDefinitions="WIN32;_DEBUG;_STLP_DEBUG;OIS_NONCLIENT_BUILD;OIS_DYNAMIC_LIB;OIS_SDL_PLATFORM" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="StdAfx.h" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + CallingConvention="0" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="SDL.lib" + OutputFile="$(OutDir)/OIS-SDL_d.dll" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + <Configuration + Name="OIS_DebugDll|x64" + OutputDirectory="..\dll64" + IntermediateDirectory="..\dll64\$(ConfigurationName)" + ConfigurationType="2" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TargetEnvironment="3" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\includes" + PreprocessorDefinitions="WIN32;_DEBUG;_STLP_DEBUG;OIS_NONCLIENT_BUILD;OIS_DYNAMIC_LIB" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + FloatingPointModel="2" + RuntimeTypeInfo="true" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="StdAfx.h" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + CallingConvention="0" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="dxguid.lib dinput8.lib" + OutputFile="$(OutDir)/OIS_d.dll" + TargetMachine="17" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + CommandLine="" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm" + > + <File + RelativePath="..\..\src\OISEffect.cpp" + > + </File> + <File + RelativePath="..\..\src\OISForceFeedback.cpp" + > + </File> + <File + RelativePath="..\..\src\OISInputManager.cpp" + > + </File> + <File + RelativePath="..\..\src\OISJoyStick.cpp" + > + </File> + <File + RelativePath="..\..\src\OISKeyboard.cpp" + > + </File> + <File + RelativePath="..\..\src\OISObject.cpp" + > + </File> + <Filter + Name="SDL" + > + <File + RelativePath="..\..\src\SDL\SDLInputManager.cpp" + > + </File> + <File + RelativePath="..\..\src\SDL\SDLJoyStick.cpp" + > + </File> + <File + RelativePath="..\..\src\SDL\SDLKeyboard.cpp" + > + </File> + <File + RelativePath="..\..\src\SDL\SDLMouse.cpp" + > + </File> + </Filter> + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl;inc" + > + <File + RelativePath="..\..\includes\OIS.h" + > + </File> + <File + RelativePath="..\..\includes\OISEvents.h" + > + </File> + <File + RelativePath="..\..\includes\OISException.h" + > + </File> + <File + RelativePath="..\..\includes\OISInputManager.h" + > + </File> + <File + RelativePath="..\..\includes\OISJoystick.h" + > + </File> + <File + RelativePath="..\..\includes\OISKeyboard.h" + > + </File> + <File + RelativePath="..\..\includes\OISMouse.h" + > + </File> + <File + RelativePath="..\..\includes\OISObject.h" + > + </File> + <File + RelativePath="..\..\includes\OISPrereqs.h" + > + </File> + <Filter + Name="SDL" + > + <File + RelativePath="..\..\includes\SDL\SDLInputManager.h" + > + </File> + <File + RelativePath="..\..\includes\SDL\SDLJoyStick.h" + > + </File> + <File + RelativePath="..\..\includes\SDL\SDLKeyboard.h" + > + </File> + <File + RelativePath="..\..\includes\SDL\SDLMouse.h" + > + </File> + <File + RelativePath="..\..\includes\SDL\SDLPrereqs.h" + > + </File> + </Filter> + <Filter + Name="Interface" + > + <File + RelativePath="..\..\includes\OISEffect.h" + > + </File> + <File + RelativePath="..\..\includes\OISForceFeedback.h" + > + </File> + <File + RelativePath="..\..\includes\OISInterface.h" + > + </File> + </Filter> + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/Win32/SDL/SdlDemo/SdlDemo.cpp b/Win32/SDL/SdlDemo/SdlDemo.cpp new file mode 100644 index 0000000..38f2129 --- /dev/null +++ b/Win32/SDL/SdlDemo/SdlDemo.cpp @@ -0,0 +1,243 @@ +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#include <iostream> +#include <vector> +#include <sstream> +#include <OIS.h> +#include <SDL.h> +#include "resource.h" + +LRESULT DlgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); +void initSDL(); +void destroySDL(); +void initOIS(); +void destroyOIS(); + +void OutputMessage( const std::string& message ); + +//Fun Globals ;-) +HWND hWnd = 0, hOut = 0, hDisp = 0; +bool appRunning = true; + +using namespace OIS; + +//////////// Common Event handler class //////// +class EventHandler : public KeyListener, public MouseListener +{ +public: + EventHandler() {} + ~EventHandler() {} + bool keyPressed( const KeyEvent &arg ) { + std::ostringstream ss; + ss << "KeyPressed {" << arg.key << ", " << ((Keyboard*)(arg.device))->getAsString(arg.key) + << "} || Text (" << (arg.text > 0 ? (char)arg.text : '?') << ")"; + OutputMessage(ss.str()); + return true; + } + bool keyReleased( const KeyEvent &arg ) { + if( arg.key == KC_ESCAPE || arg.key == KC_Q ) + { + appRunning = false; + return false; + } + std::ostringstream ss; + ss << "KeyReleased (" << arg.key << ")"; + OutputMessage(ss.str()); + return true; + } + bool mouseMoved( const MouseEvent &arg ) { + const MouseState& s = arg.state; + std::ostringstream ss; + ss << "MouseMoved: Abs(" + << s.abX << ", " << s.abY << ", " << s.abZ << ") Rel(" + << s.relX << ", " << s.relY << ", " << s.relZ << ")"; + OutputMessage(ss.str()); + return true; + } + bool mousePressed( const MouseEvent &arg, MouseButtonID id ) { + std::ostringstream ss; + ss << "MousePressed: " << id; + OutputMessage(ss.str()); + return true; + } + bool mouseReleased( const MouseEvent &arg, MouseButtonID id ) { + std::ostringstream ss; + ss << "MouseReleased: " << id; + OutputMessage(ss.str()); + return true; + } +}; + +//More Fun Globals ;-) +EventHandler gHandler; +Mouse* gMouse = 0; +Keyboard* gKeyboard = 0; + +//---------------------------------------------------------------------------------// +INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) +{ + //Create a capture window for Input Grabbing + hWnd = CreateDialog( 0, MAKEINTRESOURCE(IDD_MAIN_WINDOW), 0,(DLGPROC)DlgProc); + if( hWnd == 0 ) exit(-1); + ShowWindow(hWnd, SW_SHOW); + + hOut = GetDlgItem(hWnd, IDC_OUTPUT); + if(hOut == 0) exit(-1); + + hDisp = GetDlgItem(hWnd, IDC_SDL_WIN); + if(hDisp == 0) exit(-1); + + OutputMessage("Initialising Demo Application..."); + + try + { + initSDL(); + initOIS(); + } + catch(...) + { + appRunning = false; + } + + while(appRunning) + { + Sleep( 30 ); + MSG msg; + while( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) ) + { + if( msg.message == WM_QUIT ) + appRunning = false; + + TranslateMessage( &msg ); + DispatchMessage( &msg ); + } + + if( gKeyboard ) + { + gKeyboard->capture(); + if( gKeyboard->buffered() == false ) + if( gKeyboard->isKeyDown( KC_ESCAPE ) ) + appRunning = false; + } + + if( gMouse ) + { + gMouse->capture(); + } + } + + destroyOIS(); + destroySDL(); + return 0; +} + +//---------------------------------------------------------------------------------// +void initSDL() +{ + OutputMessage("Initialising SDL..."); + //I cannot get embedding functioning :/ + //std::ostringstream ss; + //ss << "SDL_WINDOWID=" << hDisp; + //_putenv(ss.str().c_str()); + //_putenv("SDL_VIDEODRIVER=windib"); + RECT r; + GetWindowRect(hDisp, &r); + + if( SDL_Init(SDL_INIT_VIDEO) < 0 ) + throw("Error!"); + SDL_Surface *screen = SDL_SetVideoMode( r.right-r.left, r.bottom-r.top, 32, SDL_HWSURFACE ); + + //SDL_Surface *screen = SDL_SetVideoMode( r.right-r.left, r.bottom-r.top, 0, 0 ); + //SetWindowPos(hDisp, 0, r.left, r.top, 0, 0, SWP_NOMOVE | SWP_NOSIZE); + OutputMessage("Success!"); +} + +//---------------------------------------------------------------------------------// +void destroySDL() +{ + SDL_Quit(); +} + +//---------------------------------------------------------------------------------// +void initOIS() +{ + OutputMessage("Initialising OIS..."); + InputManager *im = InputManager::createInputSystem(ParamList()); + + gKeyboard = static_cast<Keyboard*>(im->createInputObject(OISKeyboard, false)); + gKeyboard->setEventCallback( &gHandler ); + + gMouse = static_cast<Mouse*>(im->createInputObject(OISMouse, false)); + gMouse->setEventCallback( &gHandler ); + + std::ostringstream temp; + unsigned int v = im->getVersionNumber(); + temp << "Success! >> " << "Version: " << (v>>16 ) << "." << ((v>>8) & 0x000000FF) + << "." << (v & 0x000000FF) << " >> Release Name: " + << im->getVersionName() << " >> Platform: " << im->inputSystemName(); + OutputMessage(temp.str()); + OutputMessage(""); + OutputMessage("***************************************************************"); + OutputMessage("TIP!: Keep the external SDL window active to recieve events"); + OutputMessage("TIP!: Git Escape in buffered or unbuffered to quit"); + OutputMessage("***************************************************************"); +} + +//---------------------------------------------------------------------------------// +void destroyOIS() +{ + if( InputManager::getSingletonPtr() ) + { + InputManager::getSingletonPtr()->destroyInputObject(gKeyboard); + InputManager::destroyInputSystem(); + } +} + +//---------------------------------------------------------------------------------// +LRESULT DlgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) +{ + int wmId = LOWORD(wParam), wmEvent = HIWORD(wParam); + + switch(uMsg) + { + case WM_CLOSE: + PostQuitMessage(0); + return TRUE; + case WM_COMMAND: + { + switch(wmId) + { + case ID_EXIT: + PostQuitMessage(0); + return TRUE; + case IDC_BUFF_KEYS: + { + gKeyboard->setBuffered( !gKeyboard->buffered() ); + std::ostringstream temp; + temp << "** Setting Keyboard buffered Mode to: " << (gKeyboard->buffered() ? "Buffered" : "Unbuffered"); + OutputMessage(temp.str()); + return FALSE; + } + case IDC_BUFF_MOUSE: + { + gMouse->setBuffered( !gMouse->buffered() ); + std::ostringstream temp; + temp << "** Setting Mouse buffered Mode to: " << (gMouse->buffered() ? "Buffered" : "Unbuffered"); + OutputMessage(temp.str()); + return FALSE; + } + default: break; + } + } + } + + return FALSE; +} + +//---------------------------------------------------------------------------------// +void OutputMessage( const std::string& message ) +{ + static std::ostringstream buff; + buff << message << "\r\n"; + SendMessage(hOut, WM_SETTEXT, 0, (LPARAM)buff.str().c_str()); +} diff --git a/Win32/SDL/SdlDemo/SdlDemo.rc b/Win32/SDL/SdlDemo/SdlDemo.rc new file mode 100644 index 0000000..9e0533a --- /dev/null +++ b/Win32/SDL/SdlDemo/SdlDemo.rc @@ -0,0 +1,100 @@ +// Microsoft Visual C++ generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (U.S.) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_MAIN_WINDOW DIALOGEX 0, 0, 303, 279 +STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "OIS-SDL Demo" +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN + DEFPUSHBUTTON "Exit",ID_EXIT,242,258,50,14 + EDITTEXT IDC_OUTPUT,7,162,289,88,ES_MULTILINE | ES_AUTOHSCROLL | WS_VSCROLL | WS_HSCROLL,WS_EX_STATICEDGE + CONTROL "Buffered Mouse",IDC_BUFF_MOUSE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,14,258,74,10 + CONTROL "Buffered Keyboard",IDC_BUFF_KEYS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,91,258,88,10 + CONTROL "",IDC_SDL_WIN,"Static",SS_BLACKFRAME,32,27,108,86 +END + + +///////////////////////////////////////////////////////////////////////////// +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO +BEGIN + IDD_MAIN_WINDOW, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 296 + TOPMARGIN, 7 + BOTTOMMARGIN, 272 + END +END +#endif // APSTUDIO_INVOKED + +#endif // English (U.S.) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/Win32/SDL/SdlDemo/SdlDemo.vcproj b/Win32/SDL/SdlDemo/SdlDemo.vcproj new file mode 100644 index 0000000..7ff4338 --- /dev/null +++ b/Win32/SDL/SdlDemo/SdlDemo.vcproj @@ -0,0 +1,217 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="SdlDemo" + ProjectGUID="{31E76EC7-FE93-4119-8EE1-94F04A077865}" + RootNamespace="ConsoleDemo" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="$(SolutionDir)$(ConfigurationName)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="1" + CharacterSet="0" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + UseUnicodeResponseFiles="false" + Optimization="0" + AdditionalIncludeDirectories="..\..\..\includes" + PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="3" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + UseUnicodeResponseFiles="false" + AdditionalDependencies="OIS-SDL_static_d.lib" + OutputFile="debug\$(ProjectName).exe" + LinkIncremental="2" + AdditionalLibraryDirectories="..\..\..\lib" + GenerateDebugInformation="true" + SubSystem="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="$(SolutionDir)$(ConfigurationName)" + IntermediateDirectory="$(ConfigurationName)" + ConfigurationType="1" + CharacterSet="0" + WholeProgramOptimization="1" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + UseUnicodeResponseFiles="false" + AdditionalIncludeDirectories="..\..\..\includes" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" + RuntimeLibrary="2" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + UseUnicodeResponseFiles="false" + AdditionalDependencies="OIS-SDL_static.lib" + OutputFile="release\$(ProjectName).exe" + LinkIncremental="1" + AdditionalLibraryDirectories="..\..\..\lib" + GenerateDebugInformation="true" + SubSystem="2" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" + > + <File + RelativePath=".\SdlDemo.cpp" + > + </File> + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl;inc;xsd" + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" + > + <File + RelativePath=".\resource.h" + > + </File> + </Filter> + <Filter + Name="Resource Files" + Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" + UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" + > + <File + RelativePath=".\SdlDemo.rc" + > + </File> + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/Win32/SDL/SdlDemo/resource.h b/Win32/SDL/SdlDemo/resource.h new file mode 100644 index 0000000..43d1b47 --- /dev/null +++ b/Win32/SDL/SdlDemo/resource.h @@ -0,0 +1,22 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by SdlDemo.rc +// +#define IDD_MAIN_WINDOW 101 +#define IDC_OUTPUT 1001 +#define IDC_SDL_WIN 1002 +#define IDC_BUFF_MOUSE 1003 +#define IDC_BUFF_KEYS 1004 +#define ID_EXIT 1005 +#define IDC_BUTTON1 1006 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1007 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/Win32/SDL/ois_sdl_vc8.sln b/Win32/SDL/ois_sdl_vc8.sln new file mode 100644 index 0000000..4138faf --- /dev/null +++ b/Win32/SDL/ois_sdl_vc8.sln @@ -0,0 +1,36 @@ +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OIS", "OIS_sdl_vc8.vcproj", "{9BC704CB-4956-4479-BDEC-57CBC03F700E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SdlDemo", "SdlDemo\SdlDemo.vcproj", "{31E76EC7-FE93-4119-8EE1-94F04A077865}" + ProjectSection(ProjectDependencies) = postProject + {9BC704CB-4956-4479-BDEC-57CBC03F700E} = {9BC704CB-4956-4479-BDEC-57CBC03F700E} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9BC704CB-4956-4479-BDEC-57CBC03F700E}.Debug|Win32.ActiveCfg = Debug|Win32 + {9BC704CB-4956-4479-BDEC-57CBC03F700E}.Debug|Win32.Build.0 = Debug|Win32 + {9BC704CB-4956-4479-BDEC-57CBC03F700E}.Debug|x64.ActiveCfg = Debug|x64 + {9BC704CB-4956-4479-BDEC-57CBC03F700E}.Debug|x64.Build.0 = Debug|x64 + {9BC704CB-4956-4479-BDEC-57CBC03F700E}.Release|Win32.ActiveCfg = Release|Win32 + {9BC704CB-4956-4479-BDEC-57CBC03F700E}.Release|Win32.Build.0 = Release|Win32 + {9BC704CB-4956-4479-BDEC-57CBC03F700E}.Release|x64.ActiveCfg = Release|x64 + {9BC704CB-4956-4479-BDEC-57CBC03F700E}.Release|x64.Build.0 = Release|x64 + {31E76EC7-FE93-4119-8EE1-94F04A077865}.Debug|Win32.ActiveCfg = Debug|Win32 + {31E76EC7-FE93-4119-8EE1-94F04A077865}.Debug|Win32.Build.0 = Debug|Win32 + {31E76EC7-FE93-4119-8EE1-94F04A077865}.Debug|x64.ActiveCfg = Debug|Win32 + {31E76EC7-FE93-4119-8EE1-94F04A077865}.Release|Win32.ActiveCfg = Release|Win32 + {31E76EC7-FE93-4119-8EE1-94F04A077865}.Release|Win32.Build.0 = Release|Win32 + {31E76EC7-FE93-4119-8EE1-94F04A077865}.Release|x64.ActiveCfg = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Win32/ois.cbp b/Win32/ois.cbp new file mode 100755 index 0000000..62d521b --- /dev/null +++ b/Win32/ois.cbp @@ -0,0 +1,130 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<CodeBlocks_project_file> + <FileVersion major="1" minor="6" /> + <Project> + <Option title="OIS" /> + <Option compiler="gcc" /> + <Build> + <Target title="Debug"> + <Option output="..\lib\libOIS_static_d.a" prefix_auto="0" extension_auto="0" /> + <Option working_dir="" /> + <Option object_output="..\lib\obj\debug" /> + <Option type="2" /> + <Option compiler="gcc" /> + <Option createDefFile="1" /> + <Option projectResourceIncludeDirsRelation="0" /> + <Compiler> + <Add option="-g" /> + <Add option="-O0" /> + <Add option="-D_DEBUG" /> + <Add option="-D_LIB" /> + </Compiler> + </Target> + <Target title="Release"> + <Option output="..\lib\libOIS_static.a" prefix_auto="0" extension_auto="0" /> + <Option working_dir="" /> + <Option object_output="..\lib\obj\release" /> + <Option type="2" /> + <Option compiler="gcc" /> + <Option createDefFile="1" /> + <Option projectResourceIncludeDirsRelation="0" /> + <Compiler> + <Add option="-O3" /> + <Add option="-DNDEBUG" /> + <Add option="-D_LIB" /> + </Compiler> + <Linker> + <Add option="-s" /> + </Linker> + </Target> + <Target title="OIS_DebugDll"> + <Option output="..\dll\OIS_d.dll" prefix_auto="0" extension_auto="0" /> + <Option object_output="..\dll\debug" /> + <Option type="3" /> + <Option compiler="gcc" /> + <Option projectResourceIncludeDirsRelation="0" /> + <Compiler> + <Add option="-g" /> + <Add option="-O0" /> + <Add option="-D_DEBUG" /> + <Add option="-DOIS_DYNAMIC_LIB" /> + </Compiler> + <Linker> + <Add library="dinput8" /> + <Add library="dxguid" /> + </Linker> + </Target> + <Target title="OIS_ReleaseDll"> + <Option output="..\dll\OIS.dll" prefix_auto="0" extension_auto="0" /> + <Option object_output="..\dll\release" /> + <Option type="3" /> + <Option compiler="gcc" /> + <Option projectResourceIncludeDirsRelation="0" /> + <Compiler> + <Add option="-O3" /> + <Add option="-DNDEBUG" /> + <Add option="-DOIS_DYNAMIC_LIB" /> + </Compiler> + <Linker> + <Add option="-s" /> + <Add library="dinput8" /> + <Add library="dxguid" /> + </Linker> + </Target> + </Build> + <VirtualTargets> + <Add alias="All" targets="Debug;Release;OIS_DebugDll;OIS_ReleaseDll;" /> + </VirtualTargets> + <Compiler> + <Add option="-Wall" /> + <Add option="-frtti" /> + <Add option="-mthreads" /> + <Add option="-fmessage-length=0" /> + <Add option="-fexceptions" /> + <Add option="-fident" /> + <Add option="-pipe" /> + <Add option="-DWIN32" /> + <Add option="-DOIS_NONCLIENT_BUILD" /> + <Add directory="..\includes" /> + <Add directory="..\includes\win32" /> + </Compiler> + <Linker> + <Add option="-Wl,--enable-auto-image-base" /> + <Add option="-Wl,--add-stdcall-alias" /> + </Linker> + <Unit filename="..\includes\OIS.h" /> + <Unit filename="..\includes\OISConfig.h" /> + <Unit filename="..\includes\OISEffect.h" /> + <Unit filename="..\includes\OISEvents.h" /> + <Unit filename="..\includes\OISException.h" /> + <Unit filename="..\includes\OISForceFeedback.h" /> + <Unit filename="..\includes\OISInputManager.h" /> + <Unit filename="..\includes\OISInterface.h" /> + <Unit filename="..\includes\OISJoyStick.h" /> + <Unit filename="..\includes\OISJoystick.h" /> + <Unit filename="..\includes\OISKeyboard.h" /> + <Unit filename="..\includes\OISMouse.h" /> + <Unit filename="..\includes\OISObject.h" /> + <Unit filename="..\includes\OISPrereqs.h" /> + <Unit filename="..\includes\win32\Win32ForceFeedback.h" /> + <Unit filename="..\includes\win32\Win32InputManager.h" /> + <Unit filename="..\includes\win32\Win32JoyStick.h" /> + <Unit filename="..\includes\win32\Win32KeyBoard.h" /> + <Unit filename="..\includes\win32\Win32Mouse.h" /> + <Unit filename="..\includes\win32\Win32Prereqs.h" /> + <Unit filename="..\src\OISEffect.cpp" /> + <Unit filename="..\src\OISForceFeedback.cpp" /> + <Unit filename="..\src\OISInputManager.cpp" /> + <Unit filename="..\src\OISJoyStick.cpp" /> + <Unit filename="..\src\OISKeyboard.cpp" /> + <Unit filename="..\src\OISObject.cpp" /> + <Unit filename="..\src\win32\Win32ForceFeedback.cpp" /> + <Unit filename="..\src\win32\Win32InputManager.cpp" /> + <Unit filename="..\src\win32\Win32JoyStick.cpp" /> + <Unit filename="..\src\win32\Win32KeyBoard.cpp" /> + <Unit filename="..\src\win32\Win32Mouse.cpp" /> + <Extensions> + <code_completion /> + </Extensions> + </Project> +</CodeBlocks_project_file> diff --git a/Win32/ois.sln b/Win32/ois.sln new file mode 100755 index 0000000..a70c085 --- /dev/null +++ b/Win32/ois.sln @@ -0,0 +1,39 @@ +Microsoft Visual Studio Solution File, Format Version 8.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OIS", "OIS.vcproj", "{9CC704CB-4956-4479-BDEC-57CBC03F700E}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Demo_Console", "CommandLine\CommandLine.vcproj", "{7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}" + ProjectSection(ProjectDependencies) = postProject + {9CC704CB-4956-4479-BDEC-57CBC03F700E} = {9CC704CB-4956-4479-BDEC-57CBC03F700E} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Demo_FFTest", "DemoFFTest\DemoFFTest.vcproj", "{D1912D13-C99D-4959-ABDC-62BF71AD5A1A}" + ProjectSection(ProjectDependencies) = postProject + {9CC704CB-4956-4479-BDEC-57CBC03F700E} = {9CC704CB-4956-4479-BDEC-57CBC03F700E} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + Debug = Debug + Release = Release + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Debug.ActiveCfg = Debug|Win32 + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Debug.Build.0 = Debug|Win32 + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Release.ActiveCfg = Release|Win32 + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Release.Build.0 = Release|Win32 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Debug.ActiveCfg = Debug|Win32 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Debug.Build.0 = Debug|Win32 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Release.ActiveCfg = Release|Win32 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Release.Build.0 = Release|Win32 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Debug.ActiveCfg = Debug|Win32 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Debug.Build.0 = Debug|Win32 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Release.ActiveCfg = Release|Win32 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Release.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal diff --git a/Win32/ois_vc8.sln b/Win32/ois_vc8.sln new file mode 100644 index 0000000..326040e --- /dev/null +++ b/Win32/ois_vc8.sln @@ -0,0 +1,51 @@ +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OIS", "OIS_vc8.vcproj", "{9CC704CB-4956-4479-BDEC-57CBC03F700E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Demo_Console", "CommandLine\CommandLine_vc8.vcproj", "{7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}" + ProjectSection(ProjectDependencies) = postProject + {9CC704CB-4956-4479-BDEC-57CBC03F700E} = {9CC704CB-4956-4479-BDEC-57CBC03F700E} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Demo_FFTest", "DemoFFTest\DemoFFTest_vc8.vcproj", "{D1912D13-C99D-4959-ABDC-62BF71AD5A1A}" + ProjectSection(ProjectDependencies) = postProject + {9CC704CB-4956-4479-BDEC-57CBC03F700E} = {9CC704CB-4956-4479-BDEC-57CBC03F700E} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Debug|Win32.ActiveCfg = Debug|Win32 + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Debug|Win32.Build.0 = Debug|Win32 + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Debug|x64.ActiveCfg = Debug|x64 + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Debug|x64.Build.0 = Debug|x64 + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Release|Win32.ActiveCfg = Release|Win32 + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Release|Win32.Build.0 = Release|Win32 + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Release|x64.ActiveCfg = Release|x64 + {9CC704CB-4956-4479-BDEC-57CBC03F700E}.Release|x64.Build.0 = Release|x64 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Debug|Win32.ActiveCfg = Debug|Win32 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Debug|Win32.Build.0 = Debug|Win32 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Debug|x64.ActiveCfg = Debug|x64 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Debug|x64.Build.0 = Debug|x64 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Release|Win32.ActiveCfg = Release|Win32 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Release|Win32.Build.0 = Release|Win32 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Release|x64.ActiveCfg = Release|x64 + {7AC600E2-2B46-4204-8DEB-9E49A9BAF65F}.Release|x64.Build.0 = Release|x64 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Debug|Win32.ActiveCfg = Debug|Win32 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Debug|Win32.Build.0 = Debug|Win32 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Debug|x64.ActiveCfg = Debug|x64 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Debug|x64.Build.0 = Debug|x64 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Release|Win32.ActiveCfg = Release|Win32 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Release|Win32.Build.0 = Release|Win32 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Release|x64.ActiveCfg = Release|x64 + {D1912D13-C99D-4959-ABDC-62BF71AD5A1A}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal |