Expanded keyboard API, added repl tools to make process
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user