mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
overlays: Double dpad repeat rate
This commit is contained in:
parent
9aa9cbf1d8
commit
fd2bc95a7b
1 changed files with 2 additions and 2 deletions
|
@ -257,9 +257,9 @@ namespace rsx
|
||||||
{
|
{
|
||||||
if (button_id < 4) // d-pad button
|
if (button_id < 4) // d-pad button
|
||||||
{
|
{
|
||||||
if (!button_state[pad_index][button_id] || input_timer.GetMsSince(timestamp[pad_index]) > 400)
|
if (!button_state[pad_index][button_id] || input_timer.GetMsSince(timestamp[pad_index]) > 200)
|
||||||
{
|
{
|
||||||
// d-pad button was not pressed, or was pressed more than 400ms ago
|
// d-pad button was not pressed, or was pressed more than 200ms ago
|
||||||
timestamp[pad_index] = std::chrono::steady_clock::now();
|
timestamp[pad_index] = std::chrono::steady_clock::now();
|
||||||
on_button_pressed(static_cast<pad_button>(button_id));
|
on_button_pressed(static_cast<pad_button>(button_id));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue