[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 » Tue May 11, 2021 1:29 pm

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
Eileen-Class Veteran
Posts: 1073
Joined: Tue Aug 23, 2016 10:35 am
Skype: miinipaa
Contact:

Re: Event on keyboard key release

#2 Post by Ocelot » Tue May 11, 2021 1:37 pm

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 » Wed May 12, 2021 3:21 am

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: Google [Bot]