---------------------------------------------------------------
-- General
---------------------------------------------------------------
-- return true or nil (nil for dynamic table insertions)
CPAPI.IsClassicVersion    = WOW_PROJECT_ID == WOW_PROJECT_MISTS_CLASSIC or nil;
CPAPI.IsRetailVersion     = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE or nil;
CPAPI.IsClassicEraVersion = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC or nil;

---------------------------------------------------------------
-- Button
---------------------------------------------------------------
CPAPI.ExtraActionButtonID = (ExtraActionButton1 or {}).action or CPAPI.IsRetailVersion and 217 or 169;

CPAPI.ActionTypeRelease   = CPAPI.IsRetailVersion and 'typerelease' or 'type';
CPAPI.ActionTypePress     = 'type';
CPAPI.ActionPressAndHold  = 'pressAndHoldAction';
CPAPI.ActionUseOnKeyDown  = 'useOnKeyDown';

CPAPI.DefaultRingSetID    = 1;

CPAPI.SkipHotkeyRender    = 'ignoregamepadhotkey';
CPAPI.UseCustomFlyout     = 'usegamepadflyout';

CPAPI.RaidCursorUnit      = 'cursorunit';
CPAPI.ActionButtonGUID    = tostring(random((select(4, GetBuildInfo()))));

---------------------------------------------------------------
-- Addon
---------------------------------------------------------------
CPAPI.ConfigAddOn         = 'ConsolePort_Config';
CPAPI.CursorAddOn         = 'ConsolePort_Cursor';

---------------------------------------------------------------
-- For use with OnDataLoaded.
---------------------------------------------------------------
CPAPI.BurnAfterReading    = random(0001, 1337); -- Mark as garbage.
CPAPI.KeepMeForLater      = random(1338, 1992); -- Will be used again.

---------------------------------------------------------------
-- Tutorial
---------------------------------------------------------------
CPAPI.Tutorial = CPAPI.CreateFlags(
	'GamepadGraphics',
	'ControlScheme',
	'ModuleSelection',
	'ExternalSupport'
);