forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigFlags.go
28 lines (25 loc) · 1.83 KB
/
ConfigFlags.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package imgui
const (
// ConfigFlagNavEnableKeyboard master keyboard navigation enable flag. NewFrame() will automatically fill io.NavInputs[] based on io.KeysDown[].
ConfigFlagNavEnableKeyboard = 1 << iota
// ConfigFlagNavEnableGamepad master gamepad navigation enable flag.
// This is mostly to instruct your imgui back-end to fill io.NavInputs[]. Back-end also needs to set ImGuiBackendFlags_HasGamepad.
ConfigFlagNavEnableGamepad
// ConfigFlagNavEnableSetMousePos instruct navigation to move the mouse cursor.
// May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true.
// If enabled you MUST honor io.WantSetMousePos requests in your binding, otherwise ImGui will react as if the mouse is jumping around back and forth.
ConfigFlagNavEnableSetMousePos
// ConfigFlagNavNoCaptureKeyboard instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set.
ConfigFlagNavNoCaptureKeyboard
// ConfigFlagNoMouse instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information set by the back-end.
ConfigFlagNoMouse
// ConfigFlagNoMouseCursorChange instruct back-end to not alter mouse cursor shape and visibility.
// Use if the back-end cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor.
// You may want to honor requests from imgui by reading GetMouseCursor() yourself instead.
ConfigFlagNoMouseCursorChange
// User storage (to allow your back-end/engine to communicate to code that may be shared between multiple projects. Those flags are not used by core ImGui)
// ConfigFlagIsSRGB application is SRGB-aware.
ConfigFlagIsSRGB = 1 << 20
// ConfigFlagIsTouchScreen application is using a touch screen instead of a mouse.
ConfigFlagIsTouchScreen = 1 << 21
)