Key identifier code for return key?

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
bloobeary
Regular
Posts: 36
Joined: Fri Oct 04, 2019 3:02 pm
Deviantart: bloobeary
Soundcloud: user-212448702
Contact:

Key identifier code for return key?

#1 Post by bloobeary » Sat Oct 16, 2021 1:26 am

What's the key identifier code for the return key?

Not K_RETURN, the integer.

I know 8 is backspace. I need the one for the return key.

I wish there was a list of these in the documentation. If there is one, I can't find it.

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

Re: Key identifier code for return key?

#2 Post by Ocelot » Sat Oct 16, 2021 2:50 am

You can simply print value of K_RETURN and see, what it is.

However, these values can change. They did change before, so be extra careful with these.
< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: Google [Bot]