Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DJxsN-000278-6H for qemu-devel@nongnu.org; Fri, 08 Apr 2005 14:06:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJxsK-00025e-6O for qemu-devel@nongnu.org; Fri, 08 Apr 2005 14:06:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJxsJ-00024a-2p for qemu-devel@nongnu.org; Fri, 08 Apr 2005 14:06:35 -0400 Received: from [213.228.0.44] (helo=postfix3-1.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJyFA-0002kx-D0 for qemu-devel@nongnu.org; Fri, 08 Apr 2005 14:30:12 -0400 Message-ID: <1112984955.4256cd7b8267f@imp6-q.free.fr> Date: Fri, 8 Apr 2005 20:29:15 +0200 From: Pierre d'Herbemont Subject: Re: [Qemu-devel] Experimental Cocoa Video Driver - Mousesupport and Keymap References: <425439AA.5000509@kberg.ch> In-Reply-To: <425439AA.5000509@kberg.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Mike Kronenberg Cc: Qemu-devel@nongnu.org Selon Mike Kronenberg : > Hello > > this patch provides initial Mouse- and better Keyboard support. > There are still alot of things to do. Thanks for the work Mike :) > known Bugs and Workarounds: > > - still no modifiers (help is apreciated) in NSEvent there is a method called - (unsigned int)modifierFlags. > -> no grab and ungrab (use alt-tab to switch) > > - Mouseevents are only correcty passed, if the Cursor is within the > qemu-Window, when it's activated (else the Mousedown/Mouseup are passed > to the window, that was under the Cursor, when the qemu-Window is activ= ated) Probably polling for the event in NSEventTrackingRunLoopMode would help. Also, I think your code should be cleaned up a bit. I think of all those commented lines like: @@ -253,16 +330,26 @@ if (is_active_console(vga_console)) vga_update_display(); + +// [NSCursor hide]; +// CGAssociateMouseAndMouseCursorPosition ( FALSE ); + which are not needed, and more confusing than really helpful. Also you de= fine: + +static uint8_t modifiers_state[256]; //Mike + and you don't use it... I guess you should add this variable when the res= t of the code uses it. Anyway, Keep up the good work. Pierre. PS: You should add the "[Patch]" keyword to the subject next time.