Skip to content

Commit

Permalink
Change input name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudicito committed Sep 24, 2024
1 parent d2fefdb commit e81f9a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions osu.Game.Rulesets.Gitaroo/GitarooInputManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ public GitarooInputManager(RulesetInfo ruleset)

public enum GitarooAction
{
[Description("Button 1")]
Button1,
[Description("Left button")]
LeftButton,

[Description("Button 2")]
Button2,
[Description("Right button")]
RightButton,
}
}
4 changes: 2 additions & 2 deletions osu.Game.Rulesets.Gitaroo/GitarooRuleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public override IEnumerable<Mod> GetModsFor(ModType type)

public override IEnumerable<KeyBinding> GetDefaultKeyBindings(int variant = 0) => new[]
{
new KeyBinding(InputKey.Z, GitarooAction.Button1),
new KeyBinding(InputKey.X, GitarooAction.Button2),
new KeyBinding(InputKey.Z, GitarooAction.LeftButton),
new KeyBinding(InputKey.X, GitarooAction.RightButton),
};

public override Drawable CreateIcon() => new SpriteText
Expand Down
8 changes: 4 additions & 4 deletions osu.Game.Rulesets.Gitaroo/UI/CenterCircle/CenterCircle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public bool OnPressed(KeyBindingPressEvent<GitarooAction> e)
{
switch (e.Action)
{
case GitarooAction.Button1:
case GitarooAction.Button2:
case GitarooAction.LeftButton:
case GitarooAction.RightButton:
downCount++;
UpdateCircle(downCount);
break;
Expand All @@ -86,8 +86,8 @@ public void OnReleased(KeyBindingReleaseEvent<GitarooAction> e)
{
switch (e.Action)
{
case GitarooAction.Button1:
case GitarooAction.Button2:
case GitarooAction.LeftButton:
case GitarooAction.RightButton:
downCount = Math.Max(0, downCount - 1);

if (downCount == 0)
Expand Down

0 comments on commit e81f9a8

Please sign in to comment.