Expanded keyboard API, added repl tools to make process

This commit is contained in:
2026-05-27 12:25:32 +10:00
parent 1c1473339f
commit 82d43ae813
8 changed files with 90 additions and 44 deletions
+6
View File
@@ -4,6 +4,9 @@
#include "toy_vm.h"
#include "raylib.h"
//fn pointers
typedef bool (*raykey_callback)(int);
//wraps raylib's 'KeyboardKey' enum to a c-string
typedef struct KeyboardMap {
int raykey;
@@ -15,8 +18,11 @@ extern KeyboardMap keyboardMap[];
//keyboard opaque
typedef struct KeyboardData {
OpaqueType type;
raykey_callback callback;
} KeyboardData;
extern KeyboardData keyboardData;
extern KeyboardData keyPressedData;
extern KeyboardData keyReleasedData;
Toy_Value handleKeyboardAttributes(Toy_VM* vm, Toy_Value compound, Toy_Value attribute);