[Gtkradiant] Camwindow DisableFreeMove on button_release_event
"Eduard Aumüller"
basiror at gmx.de
Sat Mar 17 09:32:14 CDT 2007
exactly, hold down the right mouse button for rotate around, hold the ctrl key to strafe and use the mouse wheel / press shift+y-axis to move forward or backward
just make it an option in the preference dialog
-------- Original-Nachricht --------
Datum: Fri, 16 Mar 2007 17:16:49 -0700
Von: "Jorge Peña" <jorgepblank at gmail.com>
An: "GtkRadiant developer discussion" <gtkradiant at zerowing.idsoftware.com>
CC:
Betreff: Re: [Gtkradiant] Camwindow DisableFreeMove on button_release_event
> So now you have to hold down the mouse button to freemove? I don't know,
> but
> I think this would be better to have it as a setting, because I personally
> think it'll get complicated having to hold down the button just to move
> around, but hey if you guys like it, it isn't much of a drastic change so
> it
> shouldn't really make GtkRadiant all that bad if people don't like it, and
> we could always change it back if there's a problem.
>
> On 3/16/07, "Eduard Aumüller" <basiror at gmx.de> wrote:
> >
> > Hi,
> > I modified my own radiant so that it disables the freemove mode when you
> > release the right mouse button. I think its more user friendly if you
> don t
> > have to hit right button 2 times
> >
> > Here are the pieces of code to modify:
> >
> > a) change from GDK_BUTTON_PRESS to GDK_BUTTON_RELEASE
> >
> > 859 gboolean disable_freelook_button_press(GtkWidget* widget,
> > GdkEventButton* event, CamWnd* camwnd)
> > 860 {
> > 861 if(event->type == GDK_BUTTON_RELEASE && event->button == 3)
> > 862 {
> > 863 camwnd->DisableFreeMove();
> > 864 return TRUE;
> > 865 }
> > 866 return FALSE;
> > 867 }
> >
> > b) change "button_press_event" to "button_release_event"
> >
> > 1204 void CamWnd_Add_Handlers_FreeMove(CamWnd& camwnd)
> > 1205 {
> > ...
> > 1215 camwnd.m_freelook_button_press_handler =
> g_signal_connect(G_OBJECT(
> > camwnd.m_gl_widget),
> > 1216 "button_release_event",
> > G_CALLBACK(disable_freelook_button_press), &camwnd);
> >
> >
> > Can any of the people with write access to the SVN rep. submit this
> > change?
> >
> > thx
> >
> > --
> > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> > Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> >
> > _______________________________________________
> > Gtkradiant mailing list
> > Gtkradiant at zerowing.idsoftware.com
> > http://zerowing.idsoftware.com/cgi-bin/mailman/listinfo/gtkradiant
> >
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
More information about the Gtkradiant
mailing list