Skip to content

Program crashes when Capslock/language change pressed. #13

@asipo

Description

@asipo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions