diff --git a/build/red4ext/plugins/input_loader/input_loader.dll b/build/red4ext/plugins/input_loader/input_loader.dll index 0e3dcac..b0d6871 100644 Binary files a/build/red4ext/plugins/input_loader/input_loader.dll and b/build/red4ext/plugins/input_loader/input_loader.dll differ diff --git a/deps/red4ext.sdk b/deps/red4ext.sdk index 2c55ecc..d51092d 160000 --- a/deps/red4ext.sdk +++ b/deps/red4ext.sdk @@ -1 +1 @@ -Subproject commit 2c55eccb83beabbbe02abae7945af8efce638fca +Subproject commit d51092dd113d7ec47c458a1dde24fb1bac9664bc diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..05ba66c --- /dev/null +++ b/readme.txt @@ -0,0 +1,53 @@ +# Cyberpunk 2077 Input Loader + +This plugin looks for all `r6/input/*.xml` files and merges them with the appropriate input config file from `r6/config/` and saves results to `r6/cache/`. A configuration file is written to `engine/config/platform/pc/input_loader.ini`, which tells the game to load the merged .xml files. + +## Usage + +1. Install [RED4ext](https://github.com/WopsS/RED4ext) +2. Install Input Loader using the [latest release](https://github.com/jackhumbert/cyberpunk2077-input-loader/releases/latest), at `red4ext/plugins/` +3. Place a mod's custom .xml file in `r6/input/` +4. Start the game + +A log file will be written to `red4ext/logs/input_loader.log` every start-up, if you're having problems. + +## Node type + +Only children of `` are supported currently, but they can all be in the same .xml file (to encourage a mod to have a single .xml file). Depending on the node type, the block will be added to the new `inputContexts.xml` or `inputUserMappings.xml` automatically: + + inputUserMappings.xml: + * mapping + * buttonGroup + * pairedAxes + * preset + + inputContexts.xml: + * blend + * context + * hold + * multitap + * repeat + * toggle + * acceptedEvents + +## Node attributes + +You can add `append="true"` to a node to avoid overwriting. This is the recommeneded method for adding functionality, as multiple mods will be able to do this without conflicts. See below for an example. + +## Example .xml file + +```xml + + + + + + + + + + + + + +``` diff --git a/src/input_loader.vcxproj b/src/input_loader.vcxproj index e998a3b..fb29fdd 100644 --- a/src/input_loader.vcxproj +++ b/src/input_loader.vcxproj @@ -21,13 +21,13 @@ DynamicLibrary true - v142 + v143 Unicode DynamicLibrary false - v142 + v143 true Unicode diff --git a/src/input_loader.vcxproj.filters b/src/input_loader.vcxproj.filters new file mode 100644 index 0000000..5005674 --- /dev/null +++ b/src/input_loader.vcxproj.filters @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file