mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 11:37:32 +08:00
[+] Custom Keymap
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
namespace AquaMai.CustomKeyMap;
|
||||
using DB;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace AquaMai.CustomKeyMap;
|
||||
|
||||
public class Enable
|
||||
{
|
||||
|
||||
}
|
||||
[HarmonyPatch(typeof(JvsButtonTableRecord), MethodType.Constructor, typeof(int), typeof(string), typeof(string), typeof(int), typeof(string), typeof(int), typeof(int), typeof(int))]
|
||||
[HarmonyPostfix]
|
||||
public static void JvsButtonTableRecordConstructor(JvsButtonTableRecord __instance, string Name)
|
||||
{
|
||||
var prop = (DB.KeyCodeID)typeof(Config.CustomKeyMapConfig).GetProperty(Name).GetValue(AquaMai.AppConfig.CustomKeyMap);
|
||||
__instance.SubstituteKey = prop;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user