On 16 January 2013 05:44, Stas Sergeev wrote:
> 16.01.2013 07:15, Bart Oldeman пишет:
>> Anyway, gpm is mostly useful for dosemu in terminal mode (on the
>> console); for SDL-on-console /dev/input/mice is ok.
> What kind of OK, if it requires root? This is very far from OK.

It's the same as using dosemu -s without KMS in console mode, with
$_mouse_dev="/dev/input/mice". In both cases you need to change
permissions on /dev/input/mice so the user can read it.

> Furthermore, I worry if this works at all: what if gpm will read
> data from /dev/input/mice concurrently with SDL?

IIRC, this normally does not happen. SDL changes the console into
graphics mode (an ioctl -- see console_ioctl(4), KD_GRAPHICS)
DOSEMU in console mode does the same thing. GPM only does its cursor
drawing and mouse select functionality if the console is in text mode.

(yes this statement conflicts with the SDL patch you pointed to but
agrees with GPM documentation which states:
"While the current console is in graphic mode, `gpm' sleeps until
text mode is back (unless `-R' is used). Thus, it won't reply to
clients. Anyways, it is unlikely that mouse-eager clients will spur
out in hidden consoles.")


> But I took the code of SDL-2 branch, and it seems they have
> dropped all the console mouse support, and instead are using
> directfb API. Does this solve the gpm compatibility problem is
> what I don't know.

directfb is probably the way to go, so you (users) don't have the
permission headaches. But I haven't tested it yet (it's also a driver
in SDL 1.2)

Anyway after some testing I think the devel branch is fine. The
console exitemu regression was from May last year, and independent of
coopthreads_v2. So I now finally did what you suggested and master is
up to date again.

Bart

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Dosemu-devel mailing list
Dosemu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dosemu-devel

Reply via email to