4 #include <editor/EditorGlobal.h> 6 #include <UnigineCallback.h> 7 #include <UnigineString.h> 48 MOUSE_MIDDLE = 1 << 6,
52 MOUSE_AUX_3 = 1 << 10,
64 static bool createContext(
const char *context_id,
68 Context context_type = Context::SHARED,
71 static bool removeContext(
const char *context_id);
72 static bool hasContext(
const char *context_id);
75 static bool createControl(
const char *control_id,
const char *context_id =
"global",
76 int control_flags = ControlFlag::MOUSE | ControlFlag::KEYBOARD | ControlFlag::WHEEL);
77 static bool removeControl(
const char *control_id);
78 static bool hasControl(
const char *control_id);
80 static bool setControlTitle(
const char *control_id,
const char *title);
81 static bool setControlTooltip(
const char *control_id,
const char *tooltip);
83 static bool setControlKey(
const char *control_id,
int key);
85 static bool setControlMouseButton(
const char *control_id,
int mouse_button);
86 static bool setControlMouseWheel(
const char *control_id,
MouseWheel wheel);
88 static bool setControlModifierFlags(
const char *control_id,
int modifier_flags);
89 static bool setControlModifierMatch(
const char *control_id,
ModifierMatch modifier_match);
91 static bool setControlActivatedCallback(
const char *control_id, Unigine::CallbackBase *func);
92 static bool setControlPressedCallback(
const char *control_id, Unigine::CallbackBase *func);
93 static bool setControlReleasedCallback(
const char *control_id, Unigine::CallbackBase *func);
95 static bool addControlFriend(
const char *control_id,
const char *friend_control_id);
96 static bool removeControlFriend(
const char *control_id,
const char *friend_control_id);
98 static bool isControlPressed(
const char *control_id);
99 static bool isControlDown(
const char *control_id);
100 static bool isControlUp(
const char *control_id);
102 static Unigine::String getControlShortcutText(
const char *control_id);
Context
Definition: Controls.h:16
Definition: Controls.h:13
ControlFlag
Definition: Controls.h:22
ModifierMatch
Definition: Controls.h:55
MouseWheel
Definition: Controls.h:30
bool(*)(void *opaque) ContextActiveChecker
Definition: Controls.h:63
ModifierFlag
Definition: Controls.h:39