Py5MouseEvent.is_meta_down()

Py5MouseEvent.is_meta_down()

Return boolean value reflecting if the Meta key is down.

Examples

 1def setup():
 2    py5.size(200, 200)
 3    py5.rect_mode(py5.CENTER)
 4
 5
 6def draw():
 7    py5.square(py5.random(py5.width), py5.random(py5.height), 10)
 8
 9
10def mouse_clicked(e):
11    if e.is_meta_down():
12        py5.println('the meta key is down')
13    else:
14        py5.println('the meta key is not down')

Description

Return boolean value reflecting if the Meta key is down. The Meta key is a modifier key and can be pressed at the same time as other keys.

Underlying Processing method: isMetaDown

Syntax

is_meta_down() -> bool

Updated on April 27, 2022 10:44:51am UTC