Controller.mouse_key_check

Controller.mouse_key_check(event, key_status, mouse_key)[source]

Giving the mouse key as a dictionary that is in the list of supported keys, return if it is happening (bool).

Parameters
eventPySide2.QtGui.QMouseEvent

The Qt event.

key_statusDict

The status dictionary that is like “key_status”: { “shift”: False, “control”: False, “alt”: False }.

mouse_keyDict

The dictionary that is like “mouse_key”: { “mouse”: “right”, “key”: “shift” }.

Returns
bool

If the mouse key is happening.

Notes

This function is designed to check mouse_key combine interactions. The interactions are: “box_selection”, “selection”, “multi_selection”, “deselect”, “pan”, “rotate”, for now.