Controller.mouse_check
- Controller.mouse_check(event, button_name)[source]
Giving the button name that is one of the supported buttons, return if the button is pressed.
- Parameters
- eventPySide2.QtGui.QMouseEvent
The Qt event.
- button_namestr
The name of the button. It should be exist in the list of supported buttons.
- Returns
- bool
If the button is pressed.