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 LoreBooks — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| LoreBooks | 13,090,355 |
| Destinations | 8,211,449 |
| Bandits User Interface | 6,130,317 |
| AUI - Advanced UI | 5,406,091 |
| LibSets (All set items ingame & preview. lua API + excel sheet) | 4,357,189 |
| Votan's Minimap | 4,211,718 |