Page 1 of 1

[SOLVED] Event on keyboard key release

Posted: Tue May 11, 2021 1:29 pm
by Benny
Hi to all,

is there an event when keyboard key is release? I want to start an action when user release key and not when pressed.

Thanks a lot guys!

Re: Event on keyboard key release

Posted: Tue May 11, 2021 1:37 pm
by Ocelot
Keysym prefix keyup should work. For example key 'keyup_K_SPACE' should be triggered when space bar is released.

Re: Event on keyboard key release

Posted: Wed May 12, 2021 3:21 am
by Benny
Hi,

thanks a lot, that's just what I was looking for.
For everyone else this is the page in the doc where all keysm are explained

https://www.renpy.org/doc/html/keymap.h ... ght=keysym