Difference between revisions of "ImGui.Core:getIO"

From GiderosMobile
m (MoKaLux moved page ImGui:getIO to ImGui.Core:getIO)
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Accesses the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags).
 
Accesses the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags).
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(context) = ImGui:getIO()
 
(context) = ImGui:getIO()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===
Line 13: Line 13:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
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()