UI.Keyboard

From GiderosMobile
Revision as of 21:18, 15 October 2023 by MoKaLux (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)