mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Polling rates are fixed index numbers for all mice. 0 is immer 125Hz for example, if the mouse, like the Ckakram, do not support 125Hz, the first valid polling rate is 250Hz = 1.
This commit is contained in:
@@ -105,7 +105,7 @@ namespace GHelper
|
||||
|
||||
private void ComboBoxPollingRate_DropDownClosed(object? sender, EventArgs e)
|
||||
{
|
||||
mouse.SetPollingRate(comboBoxPollingRate.SelectedIndex + 1);
|
||||
mouse.SetPollingRate(mouse.SupportedPollingrates()[comboBoxPollingRate.SelectedIndex]);
|
||||
}
|
||||
|
||||
private void ButtonDPIColor_Click(object? sender, EventArgs e)
|
||||
@@ -337,7 +337,11 @@ namespace GHelper
|
||||
|
||||
if (mouse.CanSetPollingRate())
|
||||
{
|
||||
comboBoxPollingRate.Items.AddRange(mouse.PollingRateDisplayStrings());
|
||||
foreach(PollingRate pr in mouse.SupportedPollingrates())
|
||||
{
|
||||
comboBoxPollingRate.Items.Add(mouse.PollingRateDisplayString(pr));
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -433,7 +437,12 @@ namespace GHelper
|
||||
|
||||
if (mouse.CanSetPollingRate())
|
||||
{
|
||||
comboBoxPollingRate.SelectedIndex = mouse.PollingRate - 1;
|
||||
int idx = mouse.PollingRateIndex(mouse.PollingRate);
|
||||
if(idx == -1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
comboBoxPollingRate.SelectedIndex = idx;
|
||||
}
|
||||
|
||||
if (mouse.HasAngleSnapping())
|
||||
|
||||
Reference in New Issue
Block a user