English Amiga Board Amiga Lore


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: 38
Posts: 15
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  
AdSense AdSense  
Old 09 June 2015, 13:40   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,565
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 online now  
Old 09 June 2015, 20:17   #3
kep
Registered User

 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 38
Posts: 15
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: 42
Posts: 19,565
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 online now  
Old 09 June 2015, 20:36   #5
kep
Registered User

 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 38
Posts: 15
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: 42
Posts: 19,565
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 online now  
Old 09 June 2015, 20:47   #7
kep
Registered User

 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 38
Posts: 15
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: 42
Posts: 19,565
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 online now  
Old 09 June 2015, 21:38   #9
kep
Registered User

 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 38
Posts: 15
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: 42
Posts: 19,565
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 online now  
Old 09 June 2015, 21:59   #11
kep
Registered User

 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 38
Posts: 15
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, 54 views)
kep is offline  
Old 09 June 2015, 22:08   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,565
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 online now  
Old 09 June 2015, 22:57   #13
kep
Registered User

 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 38
Posts: 15
Here are screenshots of the input panel.
Attached Thumbnails
Click image for larger version

Name:	input.png
Views:	184
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: 42
Posts: 19,565
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 online now  
Old 10 June 2015, 20:58   #15
kep
Registered User

 
Join Date: Jun 2014
Location: Porto / Portugal
Age: 38
Posts: 15
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: 42
Posts: 19,565
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 online now  
Old 11 June 2015, 19:47   #17
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,565
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 online now  
AdSense AdSense  
 


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 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
XBox 360 Wireless Controler Worf support.WinUAE 11 17 March 2009 16:33

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 22:15.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.18315 seconds with 12 queries