From 7386ab8964b619f7c126b21ab6c462642ccd8e1a Mon Sep 17 00:00:00 2001 From: emoose Date: Fri, 10 Jan 2025 20:17:23 +0000 Subject: [PATCH] InputManager: add header text to input.ini --- src/input_manager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/input_manager.cpp b/src/input_manager.cpp index f2d017f..82ed46c 100644 --- a/src/input_manager.cpp +++ b/src/input_manager.cpp @@ -678,6 +678,15 @@ class InputManager return false; } + file << "# These bindings are used when UseNewInput is enabled inside OutRun2006Tweaks.ini\n"; + file << "# With that enabled, you can use in-game Controls > Configuration dialog to change these during gameplay\n"; + file << "# (editing this file manually can allow more advanced config, such as binding multiple inputs to a single action)\n"; + file << "# If this file doesn't exist or is empty, bindings will be reset to default.\n"; + file << "#\n"; + file << "# Actions with a negative symbol after them ('Steering-') either treat the input as a negative value, or only trigger the action on negative inputs\n"; + file << "# Analog actions bound to digital inputs, eg. 'Steering- = DPad-Left', will make DPad-Left send a negative Steering value, making it move to the left\n"; + file << "# Digital actions bound to analog inputs, eg. 'Gear Down- = RS-Y', will only trigger the action when RS-Y is negative\n"; + file << "# Analog -> analog actions can also be inverted by adding a negative to them\n\n"; file << "[Gamepad]\n"; for (int i = 0; i < 3; ++i) {