Py5KeyEvent.get_millis()#
Return the event’s timestamp.
Examples#
def setup():
py5.size(200, 200, py5.P2D)
py5.rect_mode(py5.CENTER)
def draw():
py5.square(py5.random(py5.width), py5.random(py5.height), 10)
def key_pressed(e):
py5.println('key event time:', e.get_millis())
Description#
Return the event’s timestamp. This will be measured in milliseconds.
Underlying Processing method: KeyEvent.getMillis
Signatures#
get_millis() -> int
Updated on May 02, 2024 03:24:20am UTC