English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 09 June 2015, 12:59   #1
kep
Registered User
 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 44
Posts: 16
Xbox 360 controller problems

I can't use my xbox 360 controller with emulated games. Does WinUAE support DirectInput or X-Input?
kep is offline  
Old 09 June 2015, 13:40   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
XBox 360 controllers should work fine (at least mine works). DirectInput and RawInput are used.

What do you mean by "can't use"? Does the controller appear in gameports GUI panel?
Toni Wilen is offline  
Old 09 June 2015, 20:17   #3
kep
Registered User
 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 44
Posts: 16
Quote:
Originally Posted by Toni Wilen View Post
XBox 360 controllers should work fine (at least mine works). DirectInput and RawInput are used.

What do you mean by "can't use"? Does the controller appear in gameports GUI panel?
Yes, but the games don't work with it.
What is RawInput?
kep is offline  
Old 09 June 2015, 20:31   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Click Remap/Test button next to joystick selection in GamePorts panel. Then click Test again, does anything happen when you press pad buttons etc?

RawInput is low level, low latency API that gets USB raw packets, lower then DirectInput or X-Input.

What Windows version?
Toni Wilen is offline  
Old 09 June 2015, 20:36   #5
kep
Registered User
 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 44
Posts: 16
Yes, the button presses are detected.
I'm using Windows 7 64.
kep is offline  
Old 09 June 2015, 20:42   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
And d-pad also works in test mode too, I guess?

You sure you have your pad in correct Amiga joystick port? What games?
Toni Wilen is offline  
Old 09 June 2015, 20:47   #7
kep
Registered User
 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 44
Posts: 16
Yes and yes. I've tried apidia and super cars 2.
kep is offline  
Old 09 June 2015, 21:16   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Hmm.. I assume keyboard joystick emulation works? What if you set keyboard to both ports, have controller connected, start game, confirm that keyboard control works, then press xbox360 controller green button once. Does the pad now work?

(Include also winuaebootlog.txt)
Toni Wilen is offline  
Old 09 June 2015, 21:38   #9
kep
Registered User
 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 44
Posts: 16
If I choose the controller without custom mapping it works. But I'd like to use custom mapping...
kep is offline  
Old 09 June 2015, 21:44   #10
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
It would have been good idea to mention it in first post..

Attach your config file (with custom controller configuration) and I'll check it.
Toni Wilen is offline  
Old 09 June 2015, 21:59   #11
kep
Registered User
 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 44
Posts: 16
Quote:
Originally Posted by Toni Wilen View Post
It would have been good idea to mention it in first post..

Attach your config file (with custom controller configuration) and I'll check it.
Sorry, I didn't know all the options of winuae.
I changed back to custom mapping and the game stopped recognizing the controller's input, only warp mode works.
Attached Files
File Type: uae xbox360.uae (18.9 KB, 156 views)
kep is offline  
Old 09 June 2015, 22:08   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
How does it appear in Input panel?

I only have wireless version (which has different name and IDs) and only buttons are mapped in Input panel but config file does have "missing" direction events. Weird..

Directly using Input panel (with Configuration#x selected in top select menu) probably works but it should not be needed..
Toni Wilen is offline  
Old 09 June 2015, 22:57   #13
kep
Registered User
 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 44
Posts: 16
Here are screenshots of the input panel.
Attached Thumbnails
Click image for larger version

Name:	input.png
Views:	314
Size:	61.2 KB
ID:	44427  
kep is offline  
Old 10 June 2015, 16:04   #14
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
How did you do the custom mapping? Using Input panel remap option or gameports remap?

Your screenshots says "Game Ports Panel" so you probably used Game Ports remap option but I don't understand how did you manage to get directions mapped to [-]/[+] events. It should automatically merge separate events to single horizontal (X) or vertical (Y) movement.

Test/Remap -> Delete All -> Remap -> dpad left, dpad right (separate events merged here), dpad up, dpad down (another merge), fire1, fire2, F12, (add extra events if needed), ESC. Done. (This works for me)

D-pad ("Hat Switch") mapped to [-]/[+] events cause stuck directions because d-pad does not have real "release" event.

Only way I can do this is to do something crazy like pressing left when mapping to right direction and vice versa.

There must be some use case I have missed..
Toni Wilen is offline  
Old 10 June 2015, 20:58   #15
kep
Registered User
 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 44
Posts: 16
It now works! I wasn't using the remap button, I was double-clicking on the actions.
kep is offline  
Old 10 June 2015, 21:02   #16
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by kep View Post
It now works! I wasn't using the remap button, I was double-clicking on the actions.
Thanks, this was the missed use case. It still should merge them instead of creating useless mapping config.
Toni Wilen is offline  
Old 11 June 2015, 19:47   #17
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
It was actually by design.. Single remaps are designed to not do automatic "merging", there are some situations where it is not wanted.

I guess something needs to be done to make it less confusing but I am not sure what..
Toni Wilen is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
XBox 360 Wireless Controler Worf support.WinUAE 18 21 September 2020 16:49
XBOX 360 controller disappointment Zak Retrogaming General Discussion 20 20 December 2013 15:07
XBox 360 controller support (hat switch) sulaco support.WinUAE 6 13 April 2012 16:50
Problems with an XBox 360 Controller? JohnnyWalker support.WinUAE 7 25 June 2011 18:46
XBox 360 emulation JonSick Retrogaming General Discussion 2 17 May 2010 13:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:36.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.29783 seconds with 14 queries