ESODecoded

EVENT_GAMEPAD_PREFERRED_MODE_CHANGED

ESO Lua API function — used by 55 of the 3,030 addons we indexed (combined 50,580,043 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

EVENT_GAMEPAD_PREFERRED_MODE_CHANGED(bool gamepadPreferred)

Real usage — from LoreBooks

    EVENT_MANAGER:RegisterForEvent(internal.ADDON_NAME, EVENT_LORE_BOOK_LEARNED, OnBookLearned)
    EVENT_MANAGER:RegisterForEvent(internal.ADDON_NAME, EVENT_GAMEPAD_PREFERRED_MODE_CHANGED, OnGamepadPreferredModeChanged)

Short excerpt from the shipping addon LoreBooksits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
LoreBooks13,090,355
Destinations8,211,449
Bandits User Interface6,130,317
AUI - Advanced UI5,406,091
LibSets (All set items ingame & preview. lua API + excel sheet)4,357,189
Votan's Minimap4,211,718