Difference between revisions of "ImGui.Core:getIO"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(context) = ImGui:getIO()
 
(context) = ImGui:getIO()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===
Line 16: Line 16:
 
local ui = ImGui.new()  
 
local ui = ImGui.new()  
 
local IO = ui:getIO()
 
local IO = ui:getIO()
</source>
+
</syntaxhighlight>
  
 
{{ImGui}}
 
{{ImGui}}

Latest revision as of 15:29, 13 July 2023

Available since: Gideros 2020.9
Class: ImGui

Description

Accesses the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags).

(context) = ImGui:getIO()

Return values

Returns (context) a pointer to the IO class

Example

local ui = ImGui.new() 
local IO = ui:getIO()