Handle keyboards better

Also fixes some crashes of apps on reload
This commit is contained in:
vaxerski
2022-06-03 18:59:39 +02:00
parent 10c2bd0686
commit 1a93b2a756
3 changed files with 40 additions and 20 deletions

View File

@@ -69,6 +69,8 @@ struct SKeyboard {
DYNLISTENER(keyboardKey);
DYNLISTENER(keyboardDestroy);
bool active = false;
// For the list lookup
bool operator==(const SKeyboard& rhs) {
return keyboard == rhs.keyboard;