|
Re: [Kde-games-devel] Handling "mouse pointer goes away" in KGoldrunner: msg#00096kde-games-devel
On Mon, Jul 13, 2009 at 12:59 AM, Ian Wadham<ianw2@xxxxxxxxxxxxxxx> wrote: > This problem has been nagging me for about 7 years ... > > If someone is playing KGoldrunner and moves the mouse > away from the playing area, either: > > - into KGoldrunner's border area, > - onto the desktop area around the KGoldrunner window, > - into another window, > - using things like Alt+Tab, > - or switching to another desktop completely, ... etc. > > the game animation goes on running and "follows" the mouse, > almost inevitably with disastrous results for the hero. > > So how can I detect *all* cases where something like the > above occurs, so that KGr can temporarily freeze the > animation (e.g. as it does during dialogs and messages)? Hum.... I will try a very quick suggestion, untested. Have you experimented with these? http://doc.trolltech.com/4.5/qwidget.html#mouseTracking-prop http://doc.trolltech.com/4.5/qwidget.html#grabMouse Maybe you could use these and only act on mousemove events you receive explicitally after mouse tracking is enabled? Regards, Mauricio Piacentini _______________________________________________ kde-games-devel mailing list kde-games-devel@xxxxxxx https://mail.kde.org/mailman/listinfo/kde-games-devel
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |