Background for Skyrim SE
Member of the SKI_ConfigBase script
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

  1. inta_option

    GitHub Wiki Description (SkyUI)

    The option ID.

  2. inta_keyCode

    GitHub Wiki Description (SkyUI)

    The new keycode.

  3. stringa_conflictControl

    GitHub Wiki Description (SkyUI)

    The conflicting control if the keycode was already in use; "" otherwise.

  4. 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

Related Pages


Additional References

View this event on the GitHub Wiki for SkyUI

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.