mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 14:25:40 +00:00
PowerControl reads input every 50ms instead of 250ms
This commit is contained in:
parent
eaec34d950
commit
dc9b7648f7
2 changed files with 4 additions and 5 deletions
|
|
@ -137,7 +137,7 @@ namespace PowerControl
|
|||
if (Settings.Default.EnableNeptuneController)
|
||||
{
|
||||
neptuneTimer = new System.Windows.Forms.Timer(components);
|
||||
neptuneTimer.Interval = 1000 / 30;
|
||||
neptuneTimer.Interval = 1000 / 60;
|
||||
neptuneTimer.Tick += NeptuneTimer_Tick;
|
||||
neptuneTimer.Enabled = true;
|
||||
|
||||
|
|
@ -207,10 +207,8 @@ namespace PowerControl
|
|||
}
|
||||
|
||||
// Consume only some events to avoid under-running SWICD
|
||||
if (neptuneDeviceState.buttons5.HasFlag(SDCButton5.BTN_QUICK_ACCESS))
|
||||
Thread.Sleep(1000 / 30);
|
||||
else
|
||||
Thread.Sleep(250);
|
||||
if (!neptuneDeviceState.buttons5.HasFlag(SDCButton5.BTN_QUICK_ACCESS))
|
||||
Thread.Sleep(50);
|
||||
}
|
||||
|
||||
private void dismissNeptuneInput()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue