original_docstring:  Process a mouse button event. 
docstring: Process a mouse button event.
docstring_tokens: Process a mouse button event .
code: def mouse(self, button, state, x, y):
          """ Process a mouse button event. """
          if (button == GLUT_LEFT_BUTTON):
              if (glutGetModifiers() == GLUT_ACTIVE_SHIFT):
                  self.action = MouseActions.ROTATE_Z
              elif (glutGetModifiers() == GLUT_ACTIVE_CTRL):
                  self.action = MouseActions.ZOOM
              else:
                  self.action = MouseActions.ROTATE_XY
          elif (button == GLUT_MIDDLE_BUTTON):
              self.action = MouseActions.TRANSLATE_XY
          elif (button == GLUT_RIGHT_BUTTON):
              self.action = MouseActions.ZOOM
          self.x_start = x
          self.y_start = y
code_tokens: def mouse ( self , button , state , x , y ) : if ( button == GLUT_LEFT_BUTTON ) : if ( glutGetModifiers ( ) == GLUT_ACTIVE_SHIFT ) : self . action = MouseActions . ROTATE_Z elif ( glutGetModifiers ( ) == GLUT_ACTIVE_CTRL ) : self . action = MouseActions . ZOOM else : self . action = MouseActions . ROTATE_XY elif ( button == GLUT_MIDDLE_BUTTON ) : self . action = MouseActions . TRANSLATE_XY elif ( button == GLUT_RIGHT_BUTTON ) : self . action = MouseActions . ZOOM self . x_start = x self . y_start = y
short_docstring: Process a mouse button event.
short_docstring_tokens: Process a mouse button event .
comment: """ Process a mouse button event. """