glgui native keypad - part-cw/lambdanative GitHub Wiki
(glgui-native-keypad g x y w h . keypad)
glgui-native-keypad create a spacer to be filled with the operating systems native keyboard widget. It generates fake keyboard events that must be processed in the event loop. The default keypad is a full qwerty layout. If the orientation module is included it supports landscape mode. Note: Requires the native-keypad MODULE to be included in the application.
| Parameter | Description |
|---|---|
| g | Graphical User Interface (GUI) for this widget |
| x | Lower left corner along the x-axis in pixels - Ignored |
| y | Lower left corner along the y-axis in pixels - Ignored |
| w | Width of the element in pixels - Ignored |
| h | Height of the element in pixels - Ignored |
| keypad | Optional: An alternate keypad layout to be used |
Example
Example 1: Here is an example of a simple keypad with works on iOS and android only. For other operating systems it shows a grey box where the widget would be located and the user can use their physical keyboard instead.
(glgui-native-keypad gui 0 0 (glgui-width-get) 216)