-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModConfig.cs
More file actions
60 lines (54 loc) · 1.88 KB
/
ModConfig.cs
File metadata and controls
60 lines (54 loc) · 1.88 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using StardewModdingAPI;
using System.Collections.Generic;
public sealed class ModConfig
{
public Dictionary<SButton, int> SlotKeyBindings { get; set; } // Bindings for slots
public Dictionary<SButton, int> ItemKeyBindings { get; set; } // Bindings for items
// Default keyboard keys to use for combination binds.
public List<SButton> ModifierKeys { get; set; }
// Default controller buttons to use for combination binds.
public List<SButton> ModifierButtons { get; set; }
// Default controller buttons and keyboard keys to disable for single binds.
public List<SButton> DisabledSingleButtons { get; set; }
public ModConfig()
{
this.ModifierKeys = new List<SButton>
{
SButton.LeftControl,
SButton.RightControl,
SButton.LeftAlt,
SButton.RightAlt,
SButton.LeftShift,
SButton.RightShift
};
this.ModifierButtons = new List<SButton>(new[]
{
SButton.LeftShoulder,
SButton.RightShoulder,
SButton.LeftTrigger,
SButton.RightTrigger,
SButton.LeftStick,
SButton.RightStick
});
this.DisabledSingleButtons = new List<SButton>
{
SButton.E,
SButton.F,
SButton.MouseLeft,
SButton.MouseRight,
SButton.MouseMiddle,
SButton.MouseX1,
SButton.MouseX2,
SButton.W,
SButton.A,
SButton.S,
SButton.D,
SButton.ControllerA,
SButton.ControllerB,
SButton.ControllerX,
SButton.ControllerY,
SButton.ControllerStart,
SButton.ControllerBack
};
}
}