(self)
return parameters
Return an action parameter object.
Return an action parameter object.
Return an action parameter object .
def get_action_parameters(self):
        """Return an action parameter object."""
        mp = self.mouse_position
        mpd = self.mouse_position_diff
        mpp = self.mouse_press_position
        if not mp:
            mp = (0, 0)
        if not mpd:
            mpd = (0, 0)
        if not mpp:
            mpp = (0, 0)
        parameters = dict(mouse_position=mp,
                            mouse_position_diff=mpd,
                            mouse_press_position=mpp,
                            
                            pinch_start_position=self.pinch_start_position,
                            pinch_position=self.pinch_position,
                            pinch_rotation=self.pinch_rotation,
                            pinch_scale=self.pinch_scale,
                            pinch_scale_diff=self.pinch_scale_diff,
                            
                            wheel=self.wheel,
                            key_modifier=self.key_modifier,
                            key=self.key)
        return parameters
def get_action_parameters ( self ) : mp = self . mouse_position mpd = self . mouse_position_diff mpp = self . mouse_press_position if not mp : mp = ( 0 , 0 ) if not mpd : mpd = ( 0 , 0 ) if not mpp : mpp = ( 0 , 0 ) parameters = dict ( mouse_position = mp , mouse_position_diff = mpd , mouse_press_position = mpp , pinch_start_position = self . pinch_start_position , pinch_position = self . pinch_position , pinch_rotation = self . pinch_rotation , pinch_scale = self . pinch_scale , pinch_scale_diff = self . pinch_scale_diff , wheel = self . wheel , key_modifier = self . key_modifier , key = self . key ) return parameters