[quake3-bugzilla] [Bug 4678] New: Evdev mouse input

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Wed Jul 14 14:48:38 EDT 2010


http://bugzilla.icculus.org/show_bug.cgi?id=4678

           Summary: Evdev mouse input
           Product: ioquake3
           Version: SVN HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: Platform
        AssignedTo: zakk at icculus.org
        ReportedBy: gabriel.schnoering at gmail.com
         QAContact: quake3-bugzilla at icculus.org


i made a small modification in the input code to allow
playing with direct mouse input from the kernel (using the evdev driver)
the mouse work is done in a separated thread, filling the event queue.
the feeling is good, the response too and it's very smooth.

in_mouse 2 to activate
in_mousedevice to open the wanted device (make sure you have the permissions on
it)

but sometimes the game crashs with a "Z_Free: freed a freed pointer"
Z_Free is the one called by Com_EventLoop in Com_Frame
and using gdb i got that it occurs with SE_PACKET event type.

I tried with the default free/malloc from glibc and it crashes too.
I changed the size of the queue event and it doesn't change the behaviour.

Maybe someone with more experience in threads could help if it is thread
related.
The evdev code sends more events, so maybe it can come from here too.

Note : i forgot to put #defines to make it linux only but i don't think i'll be
applied to HEAD like this ^^

If someone is interested and wants to give some hints or feedbacks that would
be great.

-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list