Refactor BadKB app structure

This commit is contained in:
Willy-JL
2024-02-17 04:34:14 +00:00
parent 79baf13224
commit 14e96fce32
19 changed files with 355 additions and 335 deletions

View File

@@ -1,17 +1,11 @@
#pragma once
#include <gui/view.h>
#include "../helpers/ducky_script.h"
typedef struct BadKb BadKb;
typedef void (*BadKbButtonCallback)(InputKey key, void* context);
typedef struct {
View* view;
BadKbButtonCallback callback;
void* context;
} BadKb;
typedef struct BadKbState BadKbState;
BadKb* bad_kb_alloc();
void bad_kb_free(BadKb* bad_kb);