Rename Back Button Timeout and disable it by default

Users don't expect long presses of the back button to not work out of the box.
This commit is contained in:
Cameron Gutman 2023-05-24 23:21:01 -05:00
parent b3f57cf90d
commit 8da919f411
3 changed files with 8 additions and 12 deletions

View File

@ -156,14 +156,12 @@ back_button_timeout
^^^^^^^^^^^^^^^^^^^
**Description**
If, after the timeout, the back/select button is still pressed down, Home/Guide button press is emulated.
On Nvidia Shield, the home and power button are not passed to Moonlight.
If the Back/Select button is held down for the specified number of milliseconds, a Home/Guide button press is emulated.
.. Tip:: If back_button_timeout < 0, then the Home/Guide button will not be emulated.
**Default**
``2000``
``-1``
**Example**
.. code-block:: text

View File

@ -429,7 +429,7 @@ namespace config {
{ 0x11, 0xA2 },
{ 0x12, 0xA4 },
},
2s, // back_button_timeout
-1ms, // back_button_timeout
500ms, // key_repeat_delay
std::chrono::duration<double> { 1 / 24.9 }, // key_repeat_period

View File

@ -334,23 +334,21 @@
</div>
</div>
<div v-if="currentTab === 'input'" class="config-page">
<!--Back Button Timeout-->
<!--Home/Guide Button Emulation Timeout-->
<div class="mb-3">
<label for="back_button_timeout" class="form-label"
>Back Button Timeout</label
>Home/Guide Button Emulation Timeout</label
>
<input
type="text"
class="form-control"
id="back_button_timeout"
placeholder="2000"
placeholder="-1"
v-model="config.back_button_timeout"
/>
<div class="form-text">
The back/select button on the controller.<br />
On the Shield, the home and power button are not passed to Moonlight.<br />
If, after the timeout, the back button is still pressed down, Home/Guide button press is emulated.<br />
If back_button_timeout &lt; 0, then the Home/Guide button will not be emulated<br />
If the Back/Select button is held down for the specified number of milliseconds, a Home/Guide button press is emulated.<br />
If set to a value &lt; 0 (default), holding the Back/Select button will not emulate the Home/Guide button.<br />
</div>
</div>
<!--Enable Mouse Input-->