focus event

This commit is contained in:
Jorijn van der Graaf 2025-11-10 21:21:35 +01:00
commit 780189a1a6
4 changed files with 37 additions and 11 deletions

View file

@ -32,6 +32,12 @@ export namespace Crafter {
KeyboardEvent(const char* key, std::int32_t keyCode, bool altKey, bool ctrlKey, bool shiftKey, bool metaKey) : key(key), keyCode(keyCode), altKey(altKey), ctrlKey(ctrlKey), shiftKey(shiftKey), metaKey(metaKey) {}
};
struct FocusEvent {
void* target;
void* relatedTarget;
FocusEvent(void* target, void* relatedTarget) : target(target), relatedTarget(relatedTarget) {}
};
// Mouse event structure
struct MouseEvent {
double clientX;