Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
xan1242 committed Apr 2, 2022
1 parent 6f9e599 commit ae8e2e7
Show file tree
Hide file tree
Showing 39 changed files with 4,046 additions and 0 deletions.
58 changes: 58 additions & 0 deletions BitInfo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
BIT ARRAY
00719780

INGAME:
00 - NULL
01 - digital throttle
02 - digital reverse
03 - digital left
04 - digital right
05 - ebrake
06 - NOS
07 - shift up
08 - shift down
09 - look back
10 - change cam
11 - P2 start / debug camera spawn car / 5 key and Q key
12 - pause
13 - unk
14 - reset car
15 - unk
FE CONTROLS
16 - up
17 - down
18 - left
19 - right
20 - accept
21 - ? start?
22 - H key (HELP?)
23 - back
24 - C key - select?
25 - L2
26 - R2
27 - left shoulder
28 - right shoulder
29 - car orbit up
30 - car orbit left
31 - car orbit down
from 00719784 ( counting up bits with 32 offset )
32 - car orbit right
// Player 2???
33 - HOME key
34 - END key
35 - P key?
36 - quit game / Q key
37 - R key
38 - debug camera up
39 - debug camera down
40 - d.c. left
41 - d.c. right
42 - U key
43 - Y key
44 - Z key
45 - colon
46 - quote " key
47 - T key / 4 ingame - debug camera turbo
48 - 6 key - debug camera super turbo
50 - O key
51 - activate debug camera
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Lovro Pleše

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
28 changes: 28 additions & 0 deletions NFSU_ConsoleButtonHashes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#pragma once

#define XBOXA_HASH 0x0408D061
#define XBOXB_HASH 0x0408D062
#define XBOXX_HASH 0x0408D078
#define XBOXY_HASH 0x0408D079
#define XBOXBACK_HASH 0x594DAA91
#define XBOXSTART_HASH 0x8441012E
#define XBOXLT_HASH 0x8522DE40

#define PSCIRCLE_HASH 0xF6D884F4
#define PSCROSS_HASH 0xE8780F8C
#define PSL2_HASH 0x001B30E0
#define PSOPTIONS_HASH 0x7E1FA26E
#define PSSHARE_HASH 0xE993E015
#define PSSQUARE_HASH 0x1CBD7073
#define PSTRIANGLE_HASH 0x5F176458

#define PC_TUTORIAL 0xA35C52C5
#define PC_X 0x001AEF69
#define PC_PERFORMANCE 0x04BDFDA3
#define PC_HELP 0xC51A8C5A
#define PC_DELETE 0x6C9A44A4
#define PC_CREATEROOM 0x4073AF02
#define PC_CUSTOM 0x6B6AB9EC
#define PC_BACK 0xC5172FE2
#define PC_QUIT 0xC51FBF74

56 changes: 56 additions & 0 deletions NFSU_JoyBitInfo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#pragma once

#define NFSUJOY_NULL 0
#define NFSUJOY_DIGITAL_THROTTLE 1
#define NFSUJOY_DIGITAL_REVERSE 2
#define NFSUJOY_DIGITAL_LEFT 3
#define NFSUJOY_DIGITAL_RIGHT 4
#define NFSUJOY_EBRAKE 5
#define NFSUJOY_NOS 6
#define NFSUJOY_SHIFTUP 7
#define NFSUJOY_SHIFTDOWN 8
#define NFSUJOY_LOOKBACK 9
#define NFSUJOY_CHANGECAM 10
#define NFSUJOY_BIT11 11
#define NFSUJOY_PAUSE 12
#define NFSUJOY_BIT13 13
#define NFSUJOY_RESETCAR 14
#define NFSUJOY_BIT15 15
#define NFSUJOY_FE_UP 16
#define NFSUJOY_FE_DOWN 17
#define NFSUJOY_FE_LEFT 18
#define NFSUJOY_FE_RIGHT 19
#define NFSUJOY_FE_ACCEPT 20
#define NFSUJOY_FE_BIT21 21
#define NFSUJOY_FE_BIT22 22
#define NFSUJOY_FE_BACK 23
#define NFSUJOY_FE_BIT24 24
#define NFSUJOY_FE_L2 25
#define NFSUJOY_FE_R2 26
#define NFSUJOY_FE_L1 27
#define NFSUJOY_FE_R1 28
#define NFSUJOY_FE_ORBIT_UP 29
#define NFSUJOY_FE_ORBIT_LEFT 30
#define NFSUJOY_FE_ORBIT_DOWN 31
// second bits start from zero
#define NFSUJOY_FE_ORBIT_RIGHT 0
#define NFSUJOY_BIT33 1
#define NFSUJOY_BIT34 2
#define NFSUJOY_BIT35 3
#define NFSUJOY_BIT36 4
#define NFSUJOY_BIT37 5
#define NFSUJOY_DEBUGCAM_LOOKUP 6
#define NFSUJOY_DEBUGCAM_LOOKDOWN 7
#define NFSUJOY_DEBUGCAM_LOOKLEFT 8
#define NFSUJOY_DEBUGCAM_LOOKRIGHT 9
#define NFSUJOY_DEBUGCAM_MOVEDOWN 10
#define NFSUJOY_DEBUGCAM_MOVEFORWARD 11
#define NFSUJOY_DEBUGCAM_MOVEBACKWARD 12
#define NFSUJOY_DEBUGCAM_MOVELEFT 13
#define NFSUJOY_DEBUGCAM_MOVERIGHT 14
#define NFSUJOY_DEBUGCAM_TURBO 15
#define NFSUJOY_DEBUGCAM_SUPERTURBO 16
#define NFSUJOY_DEBUGCAM_SLOW 17
#define NFSUJOY_DEBUGCAM_MOVEUP 18
#define NFSUJOY_DEBUGCAM_ACTIVATE 19
// other bits unknown...
33 changes: 33 additions & 0 deletions NFSU_XtendedInput.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?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;hh;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>
<ClInclude Include="stdafx.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="targetver.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="stdafx.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="dllmain.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
3 changes: 3 additions & 0 deletions NFSU_XtendedInput.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Icons]
ControllerIconMode = 0 // 0 = Xbox, 1 = PlayStation 4 -- MAKE SURE TO DISABLE WIDESCREEN FIX'S BUTTON ICONS FIRST (they're dymamically changing!)
FirstControlDevice = 0 // 0 = Keyboard, 1 = Controller -- for setting the first state
22 changes: 22 additions & 0 deletions NFSU_XtendedInput.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DebugOpts", "NFSU_XtendedInput.vcxproj", "{3C558AD9-5F9C-4A14-8F07-800F46C132C7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3C558AD9-5F9C-4A14-8F07-800F46C132C7}.Debug|x86.ActiveCfg = Debug|Win32
{3C558AD9-5F9C-4A14-8F07-800F46C132C7}.Debug|x86.Build.0 = Debug|Win32
{3C558AD9-5F9C-4A14-8F07-800F46C132C7}.Release|x86.ActiveCfg = Release|Win32
{3C558AD9-5F9C-4A14-8F07-800F46C132C7}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
22 changes: 22 additions & 0 deletions NFSU_XtendedInput.sln.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DebugOpts", "ConsoleAttachment.vcxproj", "{3C558AD9-5F9C-4A14-8F07-800F46C132C7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3C558AD9-5F9C-4A14-8F07-800F46C132C7}.Debug|x86.ActiveCfg = Debug|Win32
{3C558AD9-5F9C-4A14-8F07-800F46C132C7}.Debug|x86.Build.0 = Debug|Win32
{3C558AD9-5F9C-4A14-8F07-800F46C132C7}.Release|x86.ActiveCfg = Release|Win32
{3C558AD9-5F9C-4A14-8F07-800F46C132C7}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
113 changes: 113 additions & 0 deletions NFSU_XtendedInput.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.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="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{3C558AD9-5F9C-4A14-8F07-800F46C132C7}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>QRHiddenOptions</RootNamespace>
<ProjectName>NFSU_XtendedInput</ProjectName>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</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 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>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<TargetExt>.asi</TargetExt>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<TargetExt>.asi</TargetExt>
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level4</WarningLevel>
<PrecompiledHeader>Use</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="NFSU_ConsoleButtonHashes.h" />
<ClInclude Include="NFSU_JoyBitInfo.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="targetver.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp">
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
</PrecompiledHeader>
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
</PrecompiledHeader>
</ClCompile>
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Text Include="BitInfo.txt" />
</ItemGroup>
<ItemGroup>
<None Include="NFSU_XtendedInput.ini" />
<None Include="README.md" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
Loading

0 comments on commit ae8e2e7

Please sign in to comment.