Search found 4 matches

by Neyunse
Thu Jan 21, 2021 10:59 am
Forum: Ren'Py Cookbook
Topic: Detects what type of Game Pad the player is using.
Replies: 4
Views: 531

Re: Detects what type of Game Pad the player is using.

Imperf3kt wrote:
Thu Jan 21, 2021 12:16 am
I'd suggest changing it to a conditional that checks if "PS4" or Xbox or Microsoft, etc is in the name.

I was actually halfway through making such a thing a few days ago, so I'll finish it when I get time and report my findings, if I get a chance.
I updated the code with your suggestion. :D
by Neyunse
Thu Jan 21, 2021 12:04 am
Forum: Ren'Py Cookbook
Topic: Detects what type of Game Pad the player is using.
Replies: 4
Views: 531

Re: Detects what type of Game Pad the player is using.

This looks interesting. I've noticed though, that the same controller reports a different name on different operating systems through the game pad calibration screen. Will this affect anything? The truth is I don't know, I tried this on Windows 10. But the different names can be added in the if, I ...
by Neyunse
Wed Jan 20, 2021 7:09 pm
Forum: Ren'Py Cookbook
Topic: Detects what type of Game Pad the player is using.
Replies: 4
Views: 531

Detects what type of Game Pad the player is using.

Hi! This is my first post here, I want to share with you this code I made. This code detects the type of joystick the player is using to play, it's a simple code and can be improved. In this case this detects if the joystick is from PS4 or XBOX, and if it is not from any of these brands it returns "...
by Neyunse
Fri Aug 17, 2018 7:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Can RenPy read the players data? (Name)
Replies: 9
Views: 3311

Re: Can RenPy read the players data? (Name)

to make it detect the name in windows in this way sorry for my English default player = os.environ.get('username') label start: python: if os.name == 'nt': import os for name in ('LOGNAME', 'USER', 'LNAME', 'USERNAME'): player = os.environ.get(name) elif os.name == 'posix': import os for user in ('L...