UI.Keyboard

From GiderosMobile
Revision as of 08:18, 17 October 2023 by MoKaLux (talk | contribs)
(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)