"
hardcoredaniel wrote:
maybe I was too fast thinking about this. Looks like my problem is more
generic. As soon as I run the app locally, my mouse disappears. It looks
like it is “frozen” at the last position, so I can click the last point, but
moving the mouse doesn’t do anything.
When I switch to a different program, the cursor reappears. Now when I
position it somewhere else, and then switch back to the app, this will be
the new position of the cursor - but the cursor itself is disabled again and
I can only click, not move.
Same code works when running as “desktop app” (cursor shown and can be
moved). What am I doing wrong?
I’m not sure what’s up, off the top of my head. This sounds like it’s
probably a bug in SDL. I have a few questions about the app you’re running:
- when you run it “locally”, are you running it on the local machine, but
via the Windows Simulator?
"
Running it on the local machine and the simulator shows the issue per
default. Once I change the UI from “mouse mode” to “basic touch mode” in the
simulator, I can operate my app.
?
"
- is the app configuring SDL to use non-default mouse state(s), such as a
hidden cursor, relative mouse mode, and/or something else?
"
I disabled everything that looks suspicious, but no change.
?
"
- is the app attempting to call SDL_WarpMouse* functions()?
"
Yes, I disabled it as well, no difference.
?
"
- what version of WinRT are you building your app, and LibSDL, against? I.
e. Windows 10/UWP? Windows 8.1? Windows 8.0? other?
"
I picked “Universal Windows” for everything.
?
"
- any chance you have sample code and/or project file(s) for this, that I
could look at and try running? If not, I can try to make some on my end,
using answer(s) to the above questions.
"
It’s a lot of code unfortunately. The main app is here:
with the UWP project in “vs2015_uwp\wmelite_sdl_mixer”. I am building
against recent SDL mercurial, and some dependencies from here:
You will also need a sample game image, please d/l from here:
https://bitbucket.org/hcdaniel/wmelite-rapaki-edition/downloads/data.dcp
and place it into the “Assets” folder. Currently it is not picked up by the
build (so please place it manually into the “AppX/Assets” folder), I still
need to figue that one out.
I hope to have committed all relevant files so you can easily build.
Many thanks for your help!
?
"
– David L._______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org"