I found K_SELECT among the mappings of "dismiss" in https://www.renpy.org/doc/html/keymap.html but I could not find any information on it.
It doesn't appear in Pygame inputs: https://www.pygame.org/docs/ref/key.html
https://wiki.libsdl.org/SDL2/SDL_Keycode has some SDLK_SELECT but I still don't know what it is. The key that opens the contextual menu button where the mouse is? Why would that work like Space or Enter? Some accessibility key that simulates the mouse click where the mouse is? How does it differ from mouseup_1?
I'm adding custom bindings to dismiss_unfocused in the context of scrollable NVL text box that unfortunately captures focus and prevents advance on Space (see https://github.com/renpy/renpy/issues/5090), and I need to be sure I don't forget any key.
What is input key K_SELECT?
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.
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.
Re: What is input key K_SELECT?
This refers to the "Select" button on a gamepad, or so i guess. If you scroll a bit down you'll see:komehara wrote: ↑Fri Dec 01, 2023 10:50 am I found K_SELECT among the mappings of "dismiss" in https://www.renpy.org/doc/html/keymap.html but I could
Code: Select all
# Button.
button_ignore = [ 'mousedown_1' ],
button_select = [ 'K_RETURN', 'K_KP_ENTER', 'K_SELECT', 'mouseup_1', ]...
Why on earth did I put the bread in the fridge?
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: What is input key K_SELECT?
I don't think so - the gamepad is handled different. Probably some obscure keyboard somewhere has a SELECT key.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- Ocelot
- Lemma-Class Veteran
- Posts: 2434
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: What is input key K_SELECT?
I beleve this is an artifact of old terminals, where it was responsible for switching from input mode to a screen select mode, so you could select and copy some output, for example. Modern keyboards will not have those buttons, but they are still in the list of virtual keys and are still usable like other legacy keys.
Here is a keyboard containing Select (or, rather, CursrSel) key:
https://upload.wikimedia.org/wikipedia/ ... yboard.jpg
You can also see here F13-F24 keys which are also legacy keys which are in the list of keys, but do not exist on modern keyboards.
Here is a keyboard containing Select (or, rather, CursrSel) key:
https://upload.wikimedia.org/wikipedia/ ... yboard.jpg
You can also see here F13-F24 keys which are also legacy keys which are in the list of keys, but do not exist on modern keyboards.
< < insert Rick Cook quote here > >
Who is online
Users browsing this forum: Ahrefs [Bot], decocloud, LinkAiris, Semrush [Bot]