mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-08 15:54:00 +00:00
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:
parent
cc085bfc2a
commit
19e7ed7012
14 changed files with 279 additions and 23 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue