-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
osu.Game.Rulesets.Gamebosu/UI/Input/GamebosuInputManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// gamebosu! ruleset. Copyright Lucas ARRIESSE aka Game4all. Licensed under GPLv3. | ||
// See LICENSE at root of repo for more information on licensing. | ||
|
||
using osu.Framework.Graphics; | ||
using osu.Framework.Graphics.Containers; | ||
using osu.Framework.Input; | ||
using osu.Framework.Input.Bindings; | ||
using osu.Game.Input; | ||
using osu.Game.Input.Bindings; | ||
using System.Linq; | ||
|
||
namespace osu.Game.Rulesets.Gamebosu.UI.Input | ||
{ | ||
public class GamebosuInputManager : PassThroughInputManager | ||
{ | ||
private readonly RulesetKeyBindingContainer keybindingContainer; | ||
|
||
protected override Container<Drawable> Content => content; | ||
|
||
private readonly Container content; | ||
|
||
public GamebosuInputManager(RulesetInfo ruleset) | ||
{ | ||
InternalChild = (keybindingContainer = new RulesetKeyBindingContainer(ruleset, 0, SimultaneousBindingMode.All).WithChild(content = new Container | ||
{ | ||
RelativeSizeAxes = Axes.Both | ||
})); | ||
} | ||
|
||
private class RulesetKeyBindingContainer : DatabasedKeyBindingContainer<GamebosuAction> | ||
{ | ||
protected override bool HandleRepeats => false; | ||
|
||
public RulesetKeyBindingContainer(RulesetInfo ruleset, int variant, SimultaneousBindingMode unique) | ||
: base(ruleset, variant, unique, KeyCombinationMatchingMode.Any) | ||
{ | ||
} | ||
|
||
protected override void ReloadMappings() | ||
{ | ||
base.ReloadMappings(); | ||
KeyBindings = KeyBindings.Where((IKeyBinding b) => RealmKeyBindingStore.CheckValidForGameplay(b.KeyCombination)).ToList(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
osu.Game.Rulesets.Gamebosu/UI/Screens/Gameplay/ClockRateIndicatorControlReceptor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters