Re: [Pipmak-Devel] About the mouse un-grabbing in Pipmak
Status: Alpha
Brought to you by:
cwalther
From: Aidan G. <wgs...@ih...> - 2008-01-02 01:53:33
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <br> <blockquote cite="mid:fld520$avc$1...@ge..." type="cite"> <pre wrap="">Hello Aidan Thanks for looking into this problem! </pre> <blockquote type="cite"> <pre wrap="">I have managed write a patch for Pipmak that removes the code for releasing the mouse based on mouse motion events, and adds a Lua function that releases the mouse when called. It also makes the "G" key a key-binding for this new Lua function in the "defaults.lua" file. </pre> </blockquote> <pre wrap=""><!----> Hmm. I'm not too happy with that solution, to be honest. How are users supposed to find that out? </pre> </blockquote> Well, I knew that the node with the list of key-bindings would have to be updated.<br> <blockquote cite="mid:fld520$avc$1...@ge..." type="cite"> <pre wrap="">And for those that automatic ungrabbing works (like me), wouldn't it be better to have it continue to just work, rather than forcing them to go to the keyboard every time? </pre> <blockquote type="cite"> <pre wrap="">Not only does this solve my problem with Pipmak not giving my mouse back, so I can get back to my other programs, but I also think it might be more portable across different window managers, than the current behaviour of Pipmak. </pre> </blockquote> <pre wrap=""><!----> Have you tried basing the ungrabbing on the actual speed of the mouse (i.e. taking timing into account), rather than just the pixel delta as it is currently done? That's what would seem the proper solution to me. Or as a more general question, what are your usual pixel deltas when you slam the mouse against the window edge? Another solution may be to ungrab when the unclamped mouse position has gone a certain distance outside the window, so speed wouldn't matter (but we'd still have the edge resistance that is necessary to reach the edge on Windows and X11). </pre> </blockquote> These both sound like great ideas, but I am by no means an experienced C programmer, and I don't have a very good SDL reference (I only have the SDL man pages), so could you please point me in the direction of a detailed SDL reference, or tell me how to get the coordinates for the unclamped mouse from within Pipmak.<br> <blockquote cite="mid:fld520$avc$1...@ge..." type="cite"> <pre wrap=""> </pre> <blockquote type="cite"> <pre wrap=""> Is anyone else interested in this patch, and if so, how should I submit this as a contribution to the Pipmak project? </pre> </blockquote> <pre wrap=""><!----> Please post it either to this mailing list, or to the patch tracker at <a class="moz-txt-link-rfc2396E" href="http://sourceforge.net/tracker/?group_id=112801&atid=663294"><http://sourceforge.net/tracker/?group_id=112801&atid=663294></a>. -Christian </pre> </blockquote> I will attach the patch I have made, to this message, as a quick fix for people having this problem, but I would like to continue working on improving Pipmak's current behaviour.<br> <blockquote cite="mid:fld520$avc$1...@ge..." type="cite"> <pre wrap=""> ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. <a class="moz-txt-link-freetext" href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a> _______________________________________________ Pipmak-Devel mailing list <a class="moz-txt-link-abbreviated" href="mailto:Pip...@li...">Pip...@li...</a> <a class="moz-txt-link-freetext" href="news://news.gmane.org/gmane.games.devel.pipmak.devel">news://news.gmane.org/gmane.games.devel.pipmak.devel</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/pipmak-devel">https://lists.sourceforge.net/lists/listinfo/pipmak-devel</a> </pre> </blockquote> </body> </html> |