Skip to content

No way to disable mouse move event capture. #27

@d3xMachina

Description

@d3xMachina

Hello, I only need to capture mouse button inputs. All events are captured and dispatched when using the following :
WindowsInput.Capture.Global.MouseAsync(true);

The issue I have with mouse move events being captured is that it triggers a ton of events and a lot of memory allocations.

Example after a few seconds of moving the mouse :
image
The 2 spikes are memory allocations due to moving the mouse, after I stop moving the mouse.

Stack trace of relevant memory allocations (over a few seconds) :
image

I believe it would be nice to have a way to disable the capture of mouse move events as it adds a ton of overhead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions