mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Add custom actions for Catch
Reworks input management for rulesets
This commit is contained in:
32
osu.Game.Rulesets.Catch/RulesetInputManager.cs
Normal file
32
osu.Game.Rulesets.Catch/RulesetInputManager.cs
Normal file
@ -0,0 +1,32 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System.Collections.Generic;
|
||||
using osu.Game.Input;
|
||||
using OpenTK.Input;
|
||||
|
||||
namespace osu.Game.Rulesets.Catch
|
||||
{
|
||||
public class CatchInputManager : ActionMappingInputManager<CatchAction>
|
||||
{
|
||||
public CatchInputManager()
|
||||
{
|
||||
Mappings = new Dictionary<Key, CatchAction>
|
||||
{
|
||||
{ Key.Z, CatchAction.MoveLeft },
|
||||
{ Key.Left, CatchAction.MoveLeft },
|
||||
{ Key.X, CatchAction.MoveRight },
|
||||
{ Key.Right, CatchAction.MoveRight },
|
||||
{ Key.LShift, CatchAction.Dash },
|
||||
{ Key.RShift, CatchAction.Dash },
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public enum CatchAction
|
||||
{
|
||||
MoveLeft,
|
||||
MoveRight,
|
||||
Dash
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user