Page 1 of 1

[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?

Posted: Wed Oct 19, 2022 10:40 pm
by henvu50
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
____________________________________________________________________________

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

Posted: Thu Oct 20, 2022 3:31 am
by Ocelot
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.