Software keyboard refactored (#594)

Removed software keyboard in Tactility subproject (GuiService, Lvgl.cpp) and re-implemented it in TactilityKernel.
This commit is contained in:
Ken Van Hoeylandt
2026-07-28 00:04:09 +02:00
committed by GitHub
parent 58a529cc44
commit e6e1dcd0ca
18 changed files with 391 additions and 309 deletions
@@ -1,51 +0,0 @@
#pragma once
#include <lvgl.h>
namespace tt::lvgl {
/**
* Show the on-screen keyboard.
* @param[in] textarea the textarea to focus the input for
*/
void software_keyboard_show(lv_obj_t* textarea);
/**
* Hide the on-screen keyboard.
* Has no effect when the keyboard is not visible.
*/
void software_keyboard_hide();
/**
* The on-screen keyboard is only shown when both of these conditions are true:
* - there is no hardware keyboard
* - TT_CONFIG_FORCE_ONSCREEN_KEYBOARD is set to true in tactility_config.h
* @return if we should show a on-screen keyboard for text input inside our apps
*/
bool software_keyboard_is_enabled();
/**
* Activate the keypad for a widget group.
* @param group
*/
void software_keyboard_activate(lv_group_t* group);
/**
* Deactivate the keypad for the current widget group (if any).
* You don't have to call this after calling _activate() because widget
* cleanup automatically removes itself from the group it belongs to.
*/
void software_keyboard_deactivate();
/**
* @return true if LVGL is configured with a keypad
*/
bool hardware_keyboard_is_available();
/**
* Set the keypad.
* @param device the keypad device
*/
void hardware_keyboard_set_indev(lv_indev_t* device);
}