You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently as it stands reading from the keyboard (Input.GetKeyDown, etc..) appears to be, at best, very difficult from a custom drawer without requiring a reference to ConfigurationManager.dll.
The main root of this lies in the config manager OnGUI at
which resets the keyboard inputs every frame. This is easy to work around in a global drawer by including ConfigurationManager.dll and simply setting SettingFieldDrawer._currentKeyboardShortcutToSet to your current SettingEntryBase.
Currently as it stands reading from the keyboard (
Input.GetKeyDown
, etc..) appears to be, at best, very difficult from a custom drawer without requiring a reference to ConfigurationManager.dll.The main root of this lies in the config manager OnGUI at
BepInEx.ConfigurationManager/ConfigurationManager/ConfigurationManager.cs
Lines 273 to 274 in da2fc62
SettingFieldDrawer._currentKeyboardShortcutToSet
to your currentSettingEntryBase
.BepInEx.ConfigurationManager/ConfigurationManager/SettingFieldDrawer.cs
Lines 27 to 28 in da2fc62
And of course since the type is different you can no longer simply set that variable.
If there is an easy workaround that I'm missing I'd gladly make use of it but I can't seem to find one.
The text was updated successfully, but these errors were encountered: