Difference between revisions of "UI.Keyboard"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2023.1<br/> '''Class:''' UI<br/> === Description === Creates a Keyboard widget. You choose one by setting it to true. <syntaxhigh...")
 
 
Line 28: Line 28:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
{{GIDEROS IMPORTANT LINKS}}
+
{{UI}}

Latest revision as of 07:18, 17 October 2023

Available since: Gideros 2023.1
Class: UI

Description

Creates a Keyboard widget. You choose one by setting it to true.

UI.Keyboard

There are three kind of keyboards:

  • UI.Keyboard.NATIVE
  • UI.Keyboard.PHYSICAL
  • UI.Keyboard.VIRTUAL

Example

UI.Keyboard.NATIVE=true
UI.Keyboard.PHYSICAL=false
UI.Keyboard.VIRTUAL=true

local gui = UI.TextField.new("Hello Gideros UI!", nil, 480, 320)
gui:setText("reading is good for you")
gui:setPosition(50, 50)

local screen=UI.Screen.new() -- needed to add the virtual keyboard
screen:ui(gui)