Skip to content

Raise the pointer events on CoreWindow #20350

Closed

Description

@dr1rrb

Discussed in #20300

Originally posted by HakanL May 9, 2025
I used to have this code in my Uno 5.6 start up code to capture pointer movements (it's to turn on the backlight of a screen on a RPi device) and it worked fine:

var coreWindow = CoreWindow.GetForCurrentThread();
coreWindow.PointerMoved += (s, e) =>
{
    // Turn on backlight
};

With Uno 6 coreWindow is not null, but the events are never fired. I tried with Window.Current.Content which has the events, and they are fired on regular content, but I need these fired on dialogs as well, which it won't. Any suggestions on how to globally capture PointerMoved? This is for Skia Desktop on Linux (but I can reproduce on Windows).

Activity

  1. self-assigned this
    on May 13, 2025
  2. HakanL commented on May 27, 2025

    @HakanL

    I can confirm that this works now in Uno.Sdk 6.1.0-dev.179.

  3. ramezgerges commented on Jun 5, 2025

    @ramezgerges
    Contributor

    Reproduces in 6.0.96, works in 6.0.119

  4. added theissue type on Jul 9, 2025
  5. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  6. locked as resolved and limited conversation to collaborators on May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions