XBox 360 controller and x360ce support?
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.
- SuperbowserX
- Veteran
- Posts: 270
- Joined: Sat Jan 07, 2017 3:09 pm
- Contact:
XBox 360 controller and x360ce support?
I want to create xbox 360 controller support from my game and if possible extend that to x360ce (which allows you to emulate those controllers with a USB controller). Is there any framework/guide for implementing this?
- 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: XBox 360 controller and x360ce support?
It should just work out of the box. Ren'Py supports the SDL2 controller API.
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
- SuperbowserX
- Veteran
- Posts: 270
- Joined: Sat Jan 07, 2017 3:09 pm
- Contact:
Re: XBox 360 controller and x360ce support?
I'm trying to put in x360ce into the .exe folder and that isn't working at all. Any familiarity with how to work with x360ce in Ren'py?
x360ce creates xinput/dinput files.
x360ce creates xinput/dinput files.
- 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: XBox 360 controller and x360ce support?
No idea. What happens is that once the controller is available via xinput, Ren'Py then takes advantage of that. You can hit shift+G to calibrate controllers.
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
- SuperbowserX
- Veteran
- Posts: 270
- Joined: Sat Jan 07, 2017 3:09 pm
- Contact:
Re: XBox 360 controller and x360ce support?
Using shift G to calibrate controllers work and it does create the gamecontrollerdb.txt file.
Strange thing is, after I calibrate the controller, it says "changes will occur next time program is run". Ironically, the changes work after I calibrate and *before* I rerun, but the controller doesn't work when I rerun the game. In other words, I have to manually calibrate the controller each time I start the game.
Anyway around that? Anyway to fix the importation of gamecontrollerdb.txt?
Strange thing is, after I calibrate the controller, it says "changes will occur next time program is run". Ironically, the changes work after I calibrate and *before* I rerun, but the controller doesn't work when I rerun the game. In other words, I have to manually calibrate the controller each time I start the game.
Anyway around that? Anyway to fix the importation of gamecontrollerdb.txt?
- 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: XBox 360 controller and x360ce support?
Um... it doesn't work that way for me. I'm wondering if there's something weird with your setup.
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
- SuperbowserX
- Veteran
- Posts: 270
- Joined: Sat Jan 07, 2017 3:09 pm
- Contact:
Re: XBox 360 controller and x360ce support?
Well the thing is with my controller it registers to Windows as two controllers. The used one is the one that supports PS2 analog movement. The other one, which I never use and disable with x360ce when I can, doesn't. Is there anyway you can limit Ren'py to only importing/searching for one controller type?
http://i.imgur.com/OkfYwJ3.png
Is there anyway I can set Ren'py to always ignore controller 1 (because only controller 0 has the analog input I want)? I have a feeling tihs conflict is causing my issues. Using a PS2 controller with a USB cable.
Here's my gamecontrollerdb.txt file:
And here are the relevant lines from my log.txt:
http://i.imgur.com/OkfYwJ3.png
Is there anyway I can set Ren'py to always ignore controller 1 (because only controller 0 has the analog input I want)? I have a feeling tihs conflict is causing my issues. Using a PS2 controller with a USB cable.
Here's my gamecontrollerdb.txt file:
Code: Select all
10080100000000000000504944564944,Twin USB Joystick,platform:Windows,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0
Code: Select all
controller: '10080100000000000000504944564944' 'Twin USB Joystick' 1L
controller: '10080100000000000000504944564944' 'Twin USB Joystick' 1L
- 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: XBox 360 controller and x360ce support?
Yeah, I think the problem might be that you have two identical sticks, which is confusing things.
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
- SuperbowserX
- Veteran
- Posts: 270
- Joined: Sat Jan 07, 2017 3:09 pm
- Contact:
Re: XBox 360 controller and x360ce support?
I'll try to find how to reconfigure the active controllers in Windows. That should help. Thanks!
Who is online
Users browsing this forum: Bing [Bot]