ESODecoded

IsInGamepadPreferredMode

ESO Lua API function — used by 204 of the 3,030 addons we indexed (combined 119,479,705 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

IsInGamepadPreferredMode()

Returns: bool inGamepadPreferredMode

Real usage — from LoreBooks


  if IsInGamepadPreferredMode() then
    INFORMATION_TOOLTIP:LayoutIconStringLine(INFORMATION_TOOLTIP.tooltip, nil, zo_strformat(collectionName), INFORMATION_TOOLTIP.tooltip:GetStyle("mapTitle"))

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
SkyShards12,943,031
HarvestMap9,454,533
Destinations8,211,449
Map Pins8,061,548
Lost Treasure6,404,899