forked from HACKERALERT/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConfigFlags.go
38 lines (34 loc) · 1.99 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
29
30
31
32
33
34
35
36
37
38
package imgui
const (
// ConfigFlagNone default = 0
ConfigFlagNone = 0
// ConfigFlagNavEnableKeyboard master keyboard navigation enable flag. NewFrame() will automatically fill
// io.NavInputs[] based on io.KeysDown[].
ConfigFlagNavEnableKeyboard = 1 << 0
// 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
// BackendFlagHasGamepad.
ConfigFlagNavEnableGamepad = 1 << 1
// 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 = 1 << 2
// ConfigFlagNavNoCaptureKeyboard instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive
// is set.
ConfigFlagNavNoCaptureKeyboard = 1 << 3
// ConfigFlagNoMouse instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse
// information set by the back-end.
ConfigFlagNoMouse = 1 << 4
// 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 = 1 << 5
ConfigFlagEnablePowerSavingMode = 1 << 6
// 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 Dear ImGui)
// ConfigFlagIsSRGB application is SRGB-aware.
ConfigFlagIsSRGB = 1 << 20
// ConfigFlagIsTouchScreen application is using a touch screen instead of a mouse.
ConfigFlagIsTouchScreen = 1 << 21
)