Skip to content

Commit 0a50ea5

Browse files
added "auto support", based on a suggestion from @ayukovt
1 parent dfd05ba commit 0a50ea5

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

Program.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,17 @@ async Task ControlDevice() {
182182
}
183183
*/
184184

185-
// if (baseAddresses.GeneralData.Mods.Equals(1) && baseAddresses.GeneralData.OsuStatus == OsuMemoryStatus.Playing) {
186-
// Console.WriteLine("nice try :3");
187-
//
188-
// }
185+
if (baseAddresses.GeneralData.Mods.Equals(2048) && baseAddresses.GeneralData.OsuStatus == OsuMemoryStatus.Playing) {
186+
try {
187+
await device.VibrateAsync(0.5);
188+
await Task.Delay(1000);
189+
await device.VibrateAsync(0);
190+
}
191+
catch (Exception e) {
192+
Console.WriteLine($"Problem vibrating: {e}");
193+
}
194+
await Task.Delay(100);
195+
}
189196
} else {
190197
try {
191198
if (!badGirlWarning) {

0 commit comments

Comments
 (0)