Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
63 user(s) are online (43 user(s) are browsing Forums)

Members: 0
Guests: 63

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: SDL1 open issues

Subject: Re: SDL1 open issues
by kas1e on 2019/8/28 18:10:11

@Capehill
Quote:

I don't know should it be changed. SDL_WarpMouse documentation is quite thin. I wonder how x11 backend behaves?

Personally I would be annoyed if some SDL app would start to move my mouse around even if it's not near window.


Dunno as well if it should be changed or not.. I only test it on win32 and on amigaos4 , and found the differences. I.e. in win32 version it works, in our it skips. Maybe our realisation have reassons to behave like this becaue of some amigaos internals/UI style, etc.

Quote:

Personally I would be annoyed if some SDL app would start to move my mouse around even if it's not near window


I think that SDL_WarpMouse used everywhere to just "center mouse pointer" of spawned window, at least most of time.

Quote:

If Irrlicht wants to take over the mouse, why not capture it? Does Win32 backend capture mouse inside the window?


Its not that Irrlicht want to take over the mouse, its me before want hack-and-smack SDL1 issues of irrlicht by calling SDL_WarpMouse, and find out that it behave differently on win32 and amigaos4.

Quote:

Does Win32 backend capture mouse inside the window?


Not sure what you mean by "Capture", but i can say that irrlicht compiled with win32 device usage instead of sdl1 behave like that: when you run any example which use "iswindowactive()" , then mouse pointer centered to the center of spawned window and does not matter where it was when you run irrlicht's binaries.

I at moment tried to deal with SDL1 device in irrlicht with their own code, i think that code just wrongly have by default WindowHasFocus / WindowMinimized flags set.

In other words, if we think that SDL_WarpMouse should stay as it, then not big deal, let it be like this of course.

The most strange issue currently is with SDL2, where something definately wrong happens (as you say SDL1 have some window Layer checking code , maybe that reassons). But in meantime will try to fix SDL1 device without SDL_WarpMouse, etc.
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project