См. определение в файле GesturesMenu.c строка 131
Перекрестные ссылки g_Game, instance, m_GestureItems и OnInputPresetChanged().