Coder Social home page Coder Social logo

Comments (4)

payzer avatar payzer commented on May 18, 2024

I haven't seen this happen before. Is there any XAML involved by chance or is it a pure JS app?

Another thing to check is whether any code is changing this property: navigator.gamepadInputEmulation.

It should be "keyboard". You can check by going to the JavaScript console when the mouse cursor shows up & then typing "navigator.gamepadInputEmulation" into the console. It should be set to "keyboard"

from tvhelpers.

daniel-dias avatar daniel-dias commented on May 18, 2024

Hi,

I have a XAML with only a Grid and a Webview, all the rest is JS.

About the property "navigator.gamepadInputEmulation", i've checked that it is always set as "keyboard" before and after the cursor appears.
I've also tried to set it again to "keyboard" but it has no effect.

I don't know if it is related, but on my App.xaml.cs, i have also this: Application.Current.RequiresPointerMode = ApplicationRequiresPointerMode.Auto;

I have seen on some posts that it should be set to: ApplicationRequiresPointerMode.WhenRequested, but when i do this both the cursor and the directional navigation stops working.

from tvhelpers.

payzer avatar payzer commented on May 18, 2024

Thank you that helps. In that case, I have heard of this happening before. Since there are two different UI frameworks involved, there are two ways of setting pointer mode.

If your app is only a Webview, have you considered a hosted web app or JavaScript UWP app? That would be simpler, smaller, faster & less memory. Or are you using XAML for something else?

In the other case where this happened, the developer switched to a pure HTML app to solve the problem, so unfortunately we never figured out the cause.

from tvhelpers.

payzer avatar payzer commented on May 18, 2024

This one's been open for a while so I'm going to go ahead and close it. If you still need assistance let us know.

from tvhelpers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.