Skip to content

Commit

Permalink
Merge pull request #523 from LumpBloom7/Add-mod-touch-device
Browse files Browse the repository at this point in the history
Implement touch screen detection
  • Loading branch information
LumpBloom7 authored Dec 17, 2023
2 parents f3f60d7 + 20f74d9 commit e56c784
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions osu.Game.Rulesets.Sentakki/Mods/SentakkiModTouchDevice.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using osu.Game.Rulesets.Mods;

namespace osu.Game.Rulesets.Sentakki.Mods;

public class SentakkiModTouchDevice : ModTouchDevice
{
}
6 changes: 6 additions & 0 deletions osu.Game.Rulesets.Sentakki/SentakkiRuleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ public override IEnumerable<Mod> GetModsFor(ModType type)
new ModAdaptiveSpeed(),
};

case ModType.System:
return new Mod[]
{
new SentakkiModTouchDevice()
};

default:
return Array.Empty<Mod>();
}
Expand Down

0 comments on commit e56c784

Please sign in to comment.