]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/xywindow.h
Merge commit 'c845c5cd8f427d39665d6a8b1f6eeff401370d80' into garux-merge
[xonotic/netradiant.git] / radiant / xywindow.h
index 5273ee4ec7ab0ba18d537783daa050152dcc0cff..1097a28c82a703bd9a56a47deb4122f94db9b1a3 100644 (file)
@@ -210,10 +210,12 @@ bool m_entityCreate;
 
 public:
 void ButtonState_onMouseDown( unsigned int buttons ){
-       m_buttonstate |= buttons;
+       //m_buttonstate |= buttons;
+       m_buttonstate = buttons;
 }
 void ButtonState_onMouseUp( unsigned int buttons ){
-       m_buttonstate &= ~buttons;
+       //m_buttonstate &= ~buttons;
+       m_buttonstate = 0;
 }
 unsigned int getButtonState() const {
        return m_buttonstate;
@@ -263,7 +265,7 @@ struct xywindow_globals_t
        Vector3 AxisColorY;
        Vector3 AxisColorZ;
 
-       bool m_bRightClick;
+//     bool m_bRightClick;
        bool m_bNoStipple;
        bool m_bImprovedWheelZoom;
 
@@ -281,7 +283,7 @@ struct xywindow_globals_t
                AxisColorX( 1.f, 0.f, 0.f ),
                AxisColorY( 0.f, 1.f, 0.f ),
                AxisColorZ( 0.f, 0.f, 1.f ),
-               m_bRightClick( true ),
+//             m_bRightClick( true ),
                m_bNoStipple( true ),
                m_bImprovedWheelZoom( true ){
        }