Merge develop into main (#6)

- Update TactilitySDK to `0.6.0-SNAPSHOT10`: Refactor `tt_app_registration()` for the related changes
- Fix for Diceware app hanging
- Deleted unused `assets/` in HelloWorld app
This commit is contained in:
Ken Van Hoeylandt
2025-10-05 21:16:39 +02:00
committed by GitHub
parent 37c5002c5d
commit e1579d3cbd
12 changed files with 44 additions and 52 deletions
+10 -12
View File
@@ -17,27 +17,25 @@ static void onHideApp(AppHandle appHandle, void* data) {
static_cast<Application*>(data)->onHide(appHandle);
}
static void* createApp() {
static void* createAppData() {
return new Application();
}
static void destroyApp(void* app) {
static void destroyAppData(void* app) {
delete static_cast<Application*>(app);
}
ExternalAppManifest manifest = {
.createData = createApp,
.destroyData = destroyApp,
.onCreate = onCreateApp,
.onDestroy = onDestroyApp,
.onShow = onShowApp,
.onHide = onHideApp,
};
extern "C" {
int main(int argc, char* argv[]) {
tt_app_register(&manifest);
tt_app_register((AppRegistration) {
.createData = createAppData,
.destroyData = destroyAppData,
.onCreate = onCreateApp,
.onDestroy = onDestroyApp,
.onShow = onShowApp,
.onHide = onHideApp,
});
return 0;
}