mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Use IKeyBinding for all key binding usages (and add update flow via primary key)
This commit is contained in:
@ -8,14 +8,27 @@ using Realms;
|
||||
namespace osu.Game.Input.Bindings
|
||||
{
|
||||
[MapTo("KeyBinding")]
|
||||
public class RealmKeyBinding : RealmObject, IHasGuidPrimaryKey
|
||||
public class RealmKeyBinding : RealmObject, IHasGuidPrimaryKey, IKeyBinding
|
||||
{
|
||||
[PrimaryKey]
|
||||
public string ID { get; set; }
|
||||
|
||||
public int? RulesetID { get; set; }
|
||||
|
||||
public int? Variant { get; set; }
|
||||
|
||||
KeyCombination IKeyBinding.KeyCombination
|
||||
{
|
||||
get => KeyCombination;
|
||||
set => KeyCombination = value.ToString();
|
||||
}
|
||||
|
||||
object IKeyBinding.Action
|
||||
{
|
||||
get => Action;
|
||||
set => Action = (int)value;
|
||||
}
|
||||
|
||||
public int Action { get; set; }
|
||||
|
||||
public string KeyCombination { get; set; }
|
||||
|
Reference in New Issue
Block a user