Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LinuxFramebuffer][LibInputBackend] Handle events only from specific input handler devices #14996

Closed
workgroupengineering opened this issue Mar 15, 2024 · 0 comments · Fixed by #15001

Comments

@workgroupengineering
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Allow the app to react to events from specific input handler devices

Describe the solution you'd like

Add costructor overload that accept arg LibInputBackendOptions like.

public record LibInputBackendOptions
{
     IReadOnlyList<string> Events {get; init;}
} 

public LibInputBackend
{
     public LibInputBackend()
     {
        LibInputBackendOptions options = new()
        {
            Events  = Directory.GetFiles("/dev/input", "event*"),
        }
        Init(options);
     }

    public LibInputBackend(LibInputBackendOptions options)
    {
       Init(options)
    }
   
    void Init(LibInputBackendOptions options)
    {
     ....
    }
}

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant