Project restructuring (fixes macOS builds) (#198)

- Create `Include/` folder for all main projects
- Fix some issues here and there (found while moving things)
- All includes are now in `Tactility/` subfolder and must be included with that prefix. This fixes issues with clashing POSIX headers (e.g. `<semaphore.h>` versus Tactility's `Semaphore.h`)
This commit is contained in:
Ken Van Hoeylandt
2025-02-01 18:13:20 +01:00
committed by GitHub
parent 7856827ecf
commit c87200a80d
350 changed files with 967 additions and 870 deletions
+6 -6
View File
@@ -1,11 +1,11 @@
#include "LvglKeypad.h"
#include "Tactility/lvgl/LvglKeypad.h"
namespace tt::lvgl {
static lv_indev_t* keyboard_device = NULL;
static lv_indev_t* keyboard_device = nullptr;
bool keypad_is_available() {
return keyboard_device != NULL;
return keyboard_device != nullptr;
}
void keypad_set_indev(lv_indev_t* device) {
@@ -13,14 +13,14 @@ void keypad_set_indev(lv_indev_t* device) {
}
void keypad_activate(lv_group_t* group) {
if (keyboard_device != NULL) {
if (keyboard_device != nullptr) {
lv_indev_set_group(keyboard_device, group);
}
}
void keypad_deactivate() {
if (keyboard_device != NULL) {
lv_indev_set_group(keyboard_device, NULL);
if (keyboard_device != nullptr) {
lv_indev_set_group(keyboard_device, nullptr);
}
}