11class PlayerInputEditor
21 int mSelectedActionIndex = -1;
22 char mNewCategory[64] = {};
23 char mNewActionName[64] = {};
26 bool mCapturing =
false;
27 int mCaptureBindingSlot = -1;
28 float mCaptureTimer = 0.0f;
31 enum class PopupMode {
None, Rename, DuplicateTo, MoveTo, DuplicateCategory };
32 PopupMode mPopupMode = PopupMode::None;
33 int mPopupActionIndex = -1;
34 char mPopupCategory[64] = {};
35 char mPopupName[64] = {};
36 std::string mPopupSourceCategory;
39 bool mHasClipboard =
false;
42 void DrawActionList();
43 void DrawActionDetails();
44 void DrawCaptureOverlay();
45 void DrawActionContextMenu(
int actionIndex);
46 void DrawCategoryContextMenu(
const std::string& category);
47 void DrawPopupModal();
48 void DuplicateAction(
int actionIndex, std::string toCategory, std::string newName);
49 void PasteAction(
const std::string& toCategory,
bool overrideExisting);
52PlayerInputEditor* GetPlayerInputEditor();