mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-31 12:31:45 +01:00
overlays: Double dpad repeat rate
This commit is contained in:
parent
9aa9cbf1d8
commit
fd2bc95a7b
@ -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…
x
Reference in New Issue
Block a user