-
Notifications
You must be signed in to change notification settings - Fork 436
/
Copy pathFrameworkActionContainer.cs
45 lines (40 loc) · 1.96 KB
/
FrameworkActionContainer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Framework.Input.Bindings;
namespace osu.Framework.Input
{
internal partial class FrameworkActionContainer : KeyBindingContainer<FrameworkAction>
{
public override IEnumerable<IKeyBinding> DefaultKeyBindings => new[]
{
new KeyBinding(new[] { InputKey.Control, InputKey.F1 }, FrameworkAction.ToggleDrawVisualiser),
new KeyBinding(new[] { InputKey.Control, InputKey.F2 }, FrameworkAction.ToggleGlobalStatistics),
new KeyBinding(new[] { InputKey.Control, InputKey.F3 }, FrameworkAction.ToggleAtlasVisualiser),
new KeyBinding(new[] { InputKey.Control, InputKey.F7 }, FrameworkAction.CycleFrameSync),
new KeyBinding(new[] { InputKey.Control, InputKey.Alt, InputKey.F7 }, FrameworkAction.CycleExecutionMode),
new KeyBinding(new[] { InputKey.Control, InputKey.F11 }, FrameworkAction.CycleFrameStatistics),
new KeyBinding(new[] { InputKey.Control, InputKey.F10 }, FrameworkAction.ToggleLogOverlay),
new KeyBinding(new[] { InputKey.Alt, InputKey.Enter }, FrameworkAction.ToggleFullscreen),
new KeyBinding(new[] { InputKey.F11 }, FrameworkAction.ToggleFullscreen),
new KeyBinding(new[] { InputKey.Control, InputKey.F9 }, FrameworkAction.ToggleAudioMixerVisualiser),
};
public FrameworkActionContainer()
: base(matchingMode: KeyCombinationMatchingMode.Exact)
{
}
protected override bool Prioritised => true;
}
public enum FrameworkAction
{
CycleFrameStatistics,
ToggleDrawVisualiser,
ToggleGlobalStatistics,
ToggleAtlasVisualiser,
ToggleLogOverlay,
ToggleFullscreen,
CycleFrameSync,
CycleExecutionMode,
ToggleAudioMixerVisualiser
}
}