Allow to lock steam controller locking files

- This locks `controller_neptune` configs when adding steam detection
- This overwrites default desktop/chord template
- This enables a desktop template
This commit is contained in:
Kamil Trzciński 2022-12-02 11:29:06 +01:00
parent cc085bfc2a
commit 19e7ed7012
14 changed files with 279 additions and 23 deletions

View file

@ -36,7 +36,7 @@ namespace SteamController.Devices
try
{
Marshal.StructureToPtr(haptic, handle.AddrOfPinnedObject(), false);
neptuneDevice.RequestFeatureReport(bytes);
neptuneDevice.RequestFeatureReportAsync(bytes);
return true;
}
catch (Exception e)
@ -69,7 +69,7 @@ namespace SteamController.Devices
var haptic = new SDCHapticPacket2()
{
position = position,
intensity = intensity,
intensity = (sbyte)(intensity - 5), // convert from dB to values
tsA = ts,
tsB = ts
};
@ -82,7 +82,7 @@ namespace SteamController.Devices
try
{
Marshal.StructureToPtr(haptic, handle.AddrOfPinnedObject(), false);
neptuneDevice.RequestFeatureReport(bytes);
neptuneDevice.RequestFeatureReportAsync(bytes);
return true;
}
catch (Exception e)