Skip to content

Commit

Permalink
initial commit, diunput proxy for x86
Browse files Browse the repository at this point in the history
Cant find source for the mod lmao. I'll just upload binaries for now
  • Loading branch information
muhopensores committed May 16, 2020
1 parent 1600d29 commit 567ad41
Show file tree
Hide file tree
Showing 18 changed files with 410 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# dmc3-inputs-thing
dmc3 camera and input mod
dmc3 camera and input mod. some day i will rewrite it proper
Binary file added dinput_proxy_vs2017/.vs/dinput8/v15/.suo
Binary file not shown.
Binary file added dinput_proxy_vs2017/.vs/dinput8/v15/Browse.VC.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
32 changes: 32 additions & 0 deletions dinput_proxy_vs2017/dinp.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.686
.MODEL FLAT, C
.STACK
.CODE
;-----------External usage--------------------------
EXTRN DirectInput8Create : dword;
EXTRN DllCanUnloadNow : dword;
EXTRN DllGetClassObject : dword;
EXTRN DllRegisterServer : dword;
EXTRN DllUnregisterServer: dword;
;-----------Function definitions--------------------
_DirectInput8Create PROC
jmp dword ptr [DirectInput8Create]
_DirectInput8Create ENDP

_DllCanUnloadNow PROC
jmp dword ptr [DllCanUnloadNow]
_DllCanUnloadNow ENDP

_DllGetClassObject PROC
jmp dword ptr [DllGetClassObject]
_DllGetClassObject ENDP

_DllRegisterServer PROC
jmp dword ptr [DllRegisterServer]
_DllRegisterServer ENDP

_DllUnregisterServer PROC
jmp dword ptr [DllUnregisterServer]
_DllUnregisterServer ENDP

END
62 changes: 62 additions & 0 deletions dinput_proxy_vs2017/dinput8.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
Microsoft (R) Macro Assembler (x64) Version 14.16.27023.1 08/15/19 21:06:53
dinp.asm Page 1 - 1


00000000 .CODE
;-----------External usage--------------------------
EXTRN DirectInput8Create : qword;
EXTRN DllCanUnloadNow : qword;
EXTRN DllGetClassObject : qword;
EXTRN DllRegisterServer : qword;
EXTRN DllUnregisterServer: qword;
;-----------Function definitions--------------------
00000000 _DirectInput8Create PROC
00000000 FF 25 00000000 E jmp qword ptr [DirectInput8Create]
00000006 _DirectInput8Create ENDP

00000006 _DllCanUnloadNow PROC
00000006 FF 25 00000000 E jmp qword ptr [DllCanUnloadNow]
0000000C _DllCanUnloadNow ENDP

0000000C _DllGetClassObject PROC
0000000C FF 25 00000000 E jmp qword ptr [DllGetClassObject]
00000012 _DllGetClassObject ENDP

00000012 _DllRegisterServer PROC
00000012 FF 25 00000000 E jmp qword ptr [DllRegisterServer]
00000018 _DllRegisterServer ENDP

00000018 _DllUnregisterServer PROC
00000018 FF 25 00000000 E jmp qword ptr [DllUnregisterServer]
0000001E _DllUnregisterServer ENDP

END
Microsoft (R) Macro Assembler (x64) Version 14.16.27023.1 08/15/19 21:06:53
dinp.asm Symbols 2 - 1




Procedures, parameters, and locals:

N a m e Type Value Attr

_DirectInput8Create . . . . . . P 00000000 _TEXT Length= 00000006 Public
_DllCanUnloadNow . . . . . . . . P 00000006 _TEXT Length= 00000006 Public
_DllGetClassObject . . . . . . . P 0000000C _TEXT Length= 00000006 Public
_DllRegisterServer . . . . . . . P 00000012 _TEXT Length= 00000006 Public
_DllUnregisterServer . . . . . . P 00000018 _TEXT Length= 00000006 Public


Symbols:

N a m e Type Value Attr

DirectInput8Create . . . . . . . QWord 00000000 _TEXT External
DllCanUnloadNow . . . . . . . . QWord 00000000 _TEXT External
DllGetClassObject . . . . . . . QWord 00000000 _TEXT External
DllRegisterServer . . . . . . . QWord 00000000 _TEXT External
DllUnregisterServer . . . . . . QWord 00000000 _TEXT External

0 Warnings
0 Errors
Binary file added dinput_proxy_vs2017/dinput8.sdf
Binary file not shown.
27 changes: 27 additions & 0 deletions dinput_proxy_vs2017/dinput8.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dinput8", "dinput8.vcxproj", "{9F594FDA-762B-4C6A-932B-415250C055A6}"
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
{9F594FDA-762B-4C6A-932B-415250C055A6}.Debug|Win32.ActiveCfg = Debug|Win32
{9F594FDA-762B-4C6A-932B-415250C055A6}.Debug|Win32.Build.0 = Debug|Win32
{9F594FDA-762B-4C6A-932B-415250C055A6}.Debug|x64.ActiveCfg = Debug|x64
{9F594FDA-762B-4C6A-932B-415250C055A6}.Debug|x64.Build.0 = Debug|x64
{9F594FDA-762B-4C6A-932B-415250C055A6}.Release|Win32.ActiveCfg = Release|Win32
{9F594FDA-762B-4C6A-932B-415250C055A6}.Release|Win32.Build.0 = Release|Win32
{9F594FDA-762B-4C6A-932B-415250C055A6}.Release|x64.ActiveCfg = Release|x64
{9F594FDA-762B-4C6A-932B-415250C055A6}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added dinput_proxy_vs2017/dinput8.v12.suo
Binary file not shown.
182 changes: 182 additions & 0 deletions dinput_proxy_vs2017/dinput8.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{9F594FDA-762B-4C6A-932B-415250C055A6}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>dinput8</RootNamespace>
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>NotSet</CharacterSet>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>NotSet</CharacterSet>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>NotSet</CharacterSet>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>NotSet</CharacterSet>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<IntDir>build\debug\</IntDir>
<OutDir>$(SolutionDir)\debug\</OutDir>
<LinkIncremental>true</LinkIncremental>
<GenerateManifest>false</GenerateManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<GenerateManifest>false</GenerateManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<IntDir>build\release\</IntDir>
<OutDir>$(SolutionDir)\release\</OutDir>
<LinkIncremental>false</LinkIncremental>
<GenerateManifest>false</GenerateManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<GenerateManifest>false</GenerateManifest>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;DINPUT8_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ModuleDefinitionFile>main.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;DINPUT8_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ModuleDefinitionFile>main.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;DINPUT8_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BufferSecurityCheck>false</BufferSecurityCheck>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>false</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<EntryPointSymbol>DllMain</EntryPointSymbol>
<ModuleDefinitionFile>main.def</ModuleDefinitionFile>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;DINPUT8_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BufferSecurityCheck>false</BufferSecurityCheck>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>false</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<EntryPointSymbol>DllMain</EntryPointSymbol>
<ModuleDefinitionFile>main.def</ModuleDefinitionFile>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<MASM>
<AssembledCodeListingFile>$(ProjectName).lst</AssembledCodeListingFile>
</MASM>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="main.cpp" />
</ItemGroup>
<ItemGroup>
<None Include="main.def" />
</ItemGroup>
<ItemGroup>
<MASM Include="dinp.asm" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
</ImportGroup>
</Project>
32 changes: 32 additions & 0 deletions dinput_proxy_vs2017/dinput8.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="main.def">
<Filter>Source Files</Filter>
</None>
</ItemGroup>
<ItemGroup>
<MASM Include="dinp.asm">
<Filter>Source Files</Filter>
</MASM>
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions dinput_proxy_vs2017/dinput8.vcxproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
Loading

0 comments on commit 567ad41

Please sign in to comment.