|
@@ -68,5 +68,7 @@ namespace TaleWorlds.InputSystem
|
|
|
68
68
|
public extern bool IsGameKeyDownAndReleased(int gameKey);
|
|
69
69
|
|
|
70
70
|
public extern bool IsHotKeyDownAndReleased(string gameKey);
|
|
71
|
+
|
|
72
|
+
public extern InputKey GetControllerClickKey();
|
|
71
73
|
}
|
|
72
74
|
}
|
|
@@ -20,11 +20,11 @@ namespace TaleWorlds.InputSystem
|
|
|
20
20
|
public GameKeyContextType Type { [CompilerGenerated]
|
|
21
21
|
get; }
|
|
22
22
|
|
|
23
|
-
public Dictionary<string, HotKey>.ValueCollection RegisteredHotKeys { get; }
|
|
24
|
-
|
|
25
23
|
public MBReadOnlyList<GameKey> RegisteredGameKeys { [CompilerGenerated]
|
|
26
24
|
get; }
|
|
27
25
|
|
|
26
|
+
public Dictionary<string, HotKey>.ValueCollection RegisteredHotKeys { get; }
|
|
27
|
+
|
|
28
28
|
public Dictionary<string, GameAxisKey>.ValueCollection RegisteredGameAxisKeys { get; }
|
|
29
29
|
|
|
30
30
|
protected extern GameKeyContext(string id, int gameKeysCount, GameKeyContextType type = GameKeyContextType.Default);
|
|
@@ -28,7 +28,9 @@ namespace TaleWorlds.InputSystem
|
|
|
28
28
|
|
|
29
29
|
public static extern void Tick(float dt);
|
|
30
30
|
|
|
31
|
-
public static extern void Initialize(PlatformFilePath savePath,
|
|
31
|
+
public static extern void Initialize(PlatformFilePath savePath, bool isRDownSwappedWithRRight);
|
|
32
|
+
|
|
33
|
+
public static extern void RegisterInitialContexts(IEnumerable<GameKeyContext> contexts, bool loadKeys);
|
|
32
34
|
|
|
33
35
|
public static extern bool ShouldNotifyDocumentVersionDifferent();
|
|
34
36
|
|
|
@@ -66,5 +66,7 @@ namespace TaleWorlds.InputSystem
|
|
|
66
66
|
bool IsShiftDown();
|
|
67
67
|
|
|
68
68
|
bool IsAltDown();
|
|
69
|
+
|
|
70
|
+
InputKey GetControllerClickKey();
|
|
69
71
|
}
|
|
70
72
|
}
|
|
@@ -46,8 +46,12 @@ namespace TaleWorlds.InputSystem
|
|
|
46
46
|
|
|
47
47
|
Vec2 GetResolution();
|
|
48
48
|
|
|
49
|
+
Vec2 GetDesktopResolution();
|
|
50
|
+
|
|
49
51
|
void SetCursorPosition(int x, int y);
|
|
50
52
|
|
|
51
53
|
void SetCursorFriction(float frictionValue);
|
|
54
|
+
|
|
55
|
+
InputKey GetControllerClickKey();
|
|
52
56
|
}
|
|
53
57
|
}
|
|
@@ -16,8 +16,12 @@ namespace TaleWorlds.InputSystem
|
|
|
16
16
|
public static IInputContext DebugInput { [CompilerGenerated]
|
|
17
17
|
get; }
|
|
18
18
|
|
|
19
|
+
public static IInputManager InputManager { get; }
|
|
20
|
+
|
|
19
21
|
public static Vec2 Resolution { get; }
|
|
20
22
|
|
|
23
|
+
public static Vec2 DesktopResolution { get; }
|
|
24
|
+
|
|
21
25
|
public static bool IsMouseActive { get; }
|
|
22
26
|
|
|
23
27
|
public static bool IsControllerConnected { get; }
|
|
@@ -91,5 +95,7 @@ namespace TaleWorlds.InputSystem
|
|
|
91
95
|
public static extern void SetMousePosition(int x, int y);
|
|
92
96
|
|
|
93
97
|
public static extern void SetCursorFriction(float frictionValue);
|
|
98
|
+
|
|
99
|
+
public static extern InputKey GetControllerClickKey();
|
|
94
100
|
}
|
|
95
101
|
}
|
|
@@ -32,6 +32,8 @@ namespace TaleWorlds.InputSystem
|
|
|
32
32
|
|
|
33
33
|
public extern Vector2 GetPointerPosition();
|
|
34
34
|
|
|
35
|
+
public extern Vec2 GetPointerPositionVec2();
|
|
36
|
+
|
|
35
37
|
public extern void RegisterHotKeyCategory(GameKeyContext category);
|
|
36
38
|
|
|
37
39
|
public extern bool IsCategoryRegistered(GameKeyContext category);
|
|
@@ -103,5 +105,7 @@ namespace TaleWorlds.InputSystem
|
|
|
103
105
|
public extern bool IsShiftDown();
|
|
104
106
|
|
|
105
107
|
public extern bool IsAltDown();
|
|
108
|
+
|
|
109
|
+
public extern InputKey GetControllerClickKey();
|
|
106
110
|
}
|
|
107
111
|
}
|