mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 23:23:04 +08:00
Implement tablet button bindings
This commit is contained in:
parent
10aabfc650
commit
91358f4a6a
@ -327,6 +327,50 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
finalise();
|
finalise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override bool OnTabletAuxiliaryButtonPress(TabletAuxiliaryButtonPressEvent e)
|
||||||
|
{
|
||||||
|
if (!HasFocus)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
bindTarget.UpdateKeyCombination(KeyCombination.FromInputState(e.CurrentState));
|
||||||
|
finalise();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnTabletAuxiliaryButtonRelease(TabletAuxiliaryButtonReleaseEvent e)
|
||||||
|
{
|
||||||
|
if (!HasFocus)
|
||||||
|
{
|
||||||
|
base.OnTabletAuxiliaryButtonRelease(e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
finalise();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool OnTabletPenButtonPress(TabletPenButtonPressEvent e)
|
||||||
|
{
|
||||||
|
if (!HasFocus)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
bindTarget.UpdateKeyCombination(KeyCombination.FromInputState(e.CurrentState));
|
||||||
|
finalise();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnTabletPenButtonRelease(TabletPenButtonReleaseEvent e)
|
||||||
|
{
|
||||||
|
if (!HasFocus)
|
||||||
|
{
|
||||||
|
base.OnTabletPenButtonRelease(e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
finalise();
|
||||||
|
}
|
||||||
|
|
||||||
private void clear()
|
private void clear()
|
||||||
{
|
{
|
||||||
if (bindTarget == null)
|
if (bindTarget == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user