mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	This commit is contained in:
		@@ -912,14 +912,11 @@ enum ImGuiInputEventType
 | 
			
		||||
    ImGuiInputEventType_COUNT
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
enum ImGuiInputSource
 | 
			
		||||
// Extend ImGuiInputSource
 | 
			
		||||
enum ImGuiInputSourcePrivate_
 | 
			
		||||
{
 | 
			
		||||
    ImGuiInputSource_None = 0,
 | 
			
		||||
    ImGuiInputSource_Mouse,
 | 
			
		||||
    ImGuiInputSource_Keyboard,
 | 
			
		||||
    ImGuiInputSource_Gamepad,
 | 
			
		||||
    ImGuiInputSource_Nav,               // Stored in g.ActiveIdSource only
 | 
			
		||||
    ImGuiInputSource_Clipboard,         // Currently only used by InputText()
 | 
			
		||||
    ImGuiInputSource_Clipboard = ImGuiInputSource_Gamepad + 1,     // Currently only used by InputText()
 | 
			
		||||
    ImGuiInputSource_Nav,           // Stored in g.ActiveIdSource only
 | 
			
		||||
    ImGuiInputSource_COUNT
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@@ -928,7 +925,7 @@ enum ImGuiInputSource
 | 
			
		||||
struct ImGuiInputEventMousePos      { float PosX, PosY; };
 | 
			
		||||
struct ImGuiInputEventMouseWheel    { float WheelX, WheelY; };
 | 
			
		||||
struct ImGuiInputEventMouseButton   { int Button; bool Down; };
 | 
			
		||||
struct ImGuiInputEventKey           { ImGuiKey Key; bool Down; };
 | 
			
		||||
struct ImGuiInputEventKey           { ImGuiKey Key; bool Down; float AnalogValue; };
 | 
			
		||||
struct ImGuiInputEventKeyMods       { ImGuiKeyModFlags Mods; };
 | 
			
		||||
struct ImGuiInputEventText          { unsigned int Char; };
 | 
			
		||||
struct ImGuiInputEventAppFocused    { bool Focused; };
 | 
			
		||||
@@ -2640,6 +2637,7 @@ namespace ImGui
 | 
			
		||||
    // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
 | 
			
		||||
    inline bool             IsNamedKey(ImGuiKey key)                                    { return key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END; }
 | 
			
		||||
    inline bool             IsLegacyKey(ImGuiKey key)                                   { return key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_LegacyNativeKey_END; }
 | 
			
		||||
    inline bool             IsGamepadKey(ImGuiKey key)                                  { return key >= ImGuiKey_Gamepad_BEGIN && key < ImGuiKey_Gamepad_END; }
 | 
			
		||||
    IMGUI_API ImGuiKeyData* GetKeyData(ImGuiKey key);
 | 
			
		||||
    IMGUI_API void          SetItemUsingMouseWheel();
 | 
			
		||||
    IMGUI_API void          SetActiveIdUsingNavAndKeys();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user