Difference between revisions of "ImGui.Core:getIO"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2020.9<br/> '''Class:''' Dear ImGui<br/> === Description === Accesses the IO structure (mouse/keyboard/gamepad inputs, time, vari...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2020.9<br/>
 
'''Available since:''' Gideros 2020.9<br/>
'''Class:''' [[Dear ImGui]]<br/>
+
'''Class:''' [[ImGui]]<br/>
  
 
=== 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()