I am trying hid_listener 2.0.1 to get keyboard/mouse event on my flutter app.
Anroid Studio, Mac Air M1
Following the instruction on the website,
- modify MainFlutterWindow.swift
- add
if (getListenerBackend() != null) {
if (!getListenerBackend().initialize()) {
print("Failed to initialize listener backend");
}
} else {
print("No listener backend for this platform")
}
- then I run the app, it immediately crashes when I press Capslock(English/Korean) key. Otherwise, it looks OK.
Any idea why this happens?
I am trying hid_listener 2.0.1 to get keyboard/mouse event on my flutter app.
Anroid Studio, Mac Air M1
Following the instruction on the website,
if (getListenerBackend() != null) {
if (!getListenerBackend().initialize()) {
print("Failed to initialize listener backend");
}
} else {
print("No listener backend for this platform")
}
Any idea why this happens?