- Found in:
- SkyUI
eventOnOptionKeyMapChange(inta_option, inta_keyCode, stringa_conflictControl, stringa_conflictName)
Description
GitHub Wiki Description (SkyUI)
Called when a key has been remapped.
Modify the internal state of the selected option, then use the option setters to apply the changes to the active page.
It's up to you to react to any conflicts by checking conflictControl and conflictName.
Documentation String
Called when a key has been remapped
Parameters
inta_option
GitHub Wiki Description (SkyUI)
The option ID.
inta_keyCode
GitHub Wiki Description (SkyUI)
The new keycode.
stringa_conflictControl
GitHub Wiki Description (SkyUI)
The conflicting control if the keycode was already in use; "" otherwise.
stringa_conflictName
GitHub Wiki Description (SkyUI)
ModName of the conflicting mod; "" if there was no conflict or if conflicting with a vanilla control.
Examples
Auto-Generated Example
Scriptname MyCoolScript extends SKI_ConfigBase
event OnOptionKeyMapChange(int a_option, int a_keyCode, string a_conflictControl, string a_conflictName)
Debug.trace("Event received - OnOptionKeyMapChange: a_option = " + a_option + " a_keyCode = " + a_keyCode + " a_conflictControl = " + a_conflictControl + " a_conflictName = " + a_conflictName)
endEvent