[SOLVED:Answer as PC only, not touch]If your PC has a touch screen, does Ren'py treat it as variant PC, Touch, or both?

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
henvu50
Veteran
Posts: 322
Joined: Wed Aug 22, 2018 1:22 am
Contact:

[SOLVED:Answer as PC only, not touch]If your PC has a touch screen, does Ren'py treat it as variant PC, Touch, or both?

#1 Post by henvu50 » Wed Oct 19, 2022 10:40 pm

edit: thx ocelot

If your PC has a touch screen, does Ren'py treat it as variant PC, Touch, or both?

https://www.renpy.org/doc/html/screens. ... n-variants

This is from discord. I thought the speculation and info might be useful:
____________________________________________________________________________
Too bad there's no polling or survey data to see what the percentages are.

I wonder if Ren'py takes PC touch screens into consideration? From the looks of the documentation, I don't think it does.

Code: Select all

# PC with touchscreen - Do both of these return True?
renpy.variant('touch') = True
renpy.variant('pc') = True
This guy claims PC Touchscreen is not treated as Touch - "Touchscreen pcs do not count as the touch variant" - https://discord.com/channels/2866338985 ... 4142380142

Remix has a touchscreen for his PC - https://discord.com/channels/2866338985 ... 3330426961
____________________________________________________________________________
Last edited by henvu50 on Thu Oct 20, 2022 4:27 pm, edited 2 times in total.

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

Re: If your PC has a touch screen, does Ren'py treat it as variant PC, Touch, or both?

#2 Post by Ocelot » Thu Oct 20, 2022 3:31 am

If you check choose_variants function of main.py, you will see, that 'pc' is never set alongside 'touch' variant.
Generally 'touch' is set on devices where touchscreen ais main and highly likely only method of input.
< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: No registered users