[SOLVED] Event on keyboard key release

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Benny
Newbie
Posts: 17
Joined: Sun Jul 30, 2017 11:10 am
Contact:

[SOLVED] Event on keyboard key release

#1 Post 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!
Last edited by Benny on Wed May 12, 2021 3:21 am, edited 1 time in total.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2384
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Event on keyboard key release

#2 Post by Ocelot »

Keysym prefix keyup should work. For example key 'keyup_K_SPACE' should be triggered when space bar is released.
< < insert Rick Cook quote here > >

User avatar
Benny
Newbie
Posts: 17
Joined: Sun Jul 30, 2017 11:10 am
Contact:

Re: Event on keyboard key release

#3 Post 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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot], Ocelot