focus event
This commit is contained in:
parent
917e638538
commit
780189a1a6
4 changed files with 37 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue