From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DKfB6-0007YY-QG for qemu-devel@nongnu.org; Sun, 10 Apr 2005 12:20:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DKfB1-0007V9-1R for qemu-devel@nongnu.org; Sun, 10 Apr 2005 12:20:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DKfAy-0007Ug-EA for qemu-devel@nongnu.org; Sun, 10 Apr 2005 12:20:44 -0400 Received: from [195.129.94.187] (helo=srv94-187.ip-tech.ch) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DKfex-00086J-KX for qemu-devel@nongnu.org; Sun, 10 Apr 2005 12:51:43 -0400 Message-ID: <42595948.2020900@kberg.ch> Date: Sun, 10 Apr 2005 18:50:16 +0200 From: Mike Kronenberg MIME-Version: 1.0 Subject: Re: [Qemu-devel] Cocoa Video Driver & mouse grabbing References: <42588DA6.4060106@kberg.ch> <42590955.5070100@kberg.ch> <282c26223c172bc5498fe3a2ceb6eb31@cordney.com> <425924FE.5090302@kberg.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 René Korthaus wrote: > I know. I knew - I'm following the list for quite some time :) - It was rather retorical to see whether I was worng, since I still have to crawl a lot of code. >> In order to be able to use elements outside qemu (like for examples a >> toolbar with a button to switch cdrom-images) you must have a way to >> ungrab on the fly. I use the same ctrl+alt as in SDL. > > > Why do you have to use grabbing anyway? Its as simple as when the > mouse moves over the Qemu window, the cursor in the guest os moves, > isn't it? VPC doesn't need grabbing, too, right? I think no grabbing > is more user-friendly. That is exactly the point. To achive that, both system would have to use the same cursor speed/acceleration. One way is to disable acceleration in the guest-OS. Further, the guest-OS would have to know, where I enter the window - as far as i know, the guest-OS only reads the mouse-delta. One way would be to "calibrate" the guest-OS cursor. Possibility: Send a (-10000,-10000) mouse-delta to qemu - guessing that the cursor is now at (0/0) in the guest, then compute the mouse-delta to the window-entrypoint. Writing this, I realise I have to try that. Thanks for the input :) (Still under the assumption the guest has cursor-acceleration turned of) >> Never the less, one could make an Menu- / Prefferencepanel entry for >> enabling/disabling mousegrab for Console-Style Guest-OSes > > > Then, that would require a command-line argument like -nograb for > disabling mouse grabbing for the current session, which would be the > approach I would favour personally and also for the users of a GUI, > cause it would only mean to be a checkbox in the preferences. Well, I think the "Vanilla OS X user" does not care about command-line options :) . If the SDL part would have a similar option, it would be ok to use that, but as long as only the "small" cocoa world would need it, i would stay with a checkbox in the preferences - which could be handled by cocoa.m without cmdline option. > We could probably start a poll about that... :) > BTW: I renamed the subject to meet the discussion point. No doubt :) I rl I write programs for education - target users are children 7-14 and teachers - the keyword is: keep it REAL simple. I think both ways are needed, the commandline way for us, the guiway for them :) Mike