English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 10 September 2016, 12:27   #1
vbs
Registered User
 
Join Date: Sep 2016
Location: Germany
Posts: 19
XBOX360 Wireless Controller: Dpad not working

I tried fs-uae and I am really happy with it but I have one problem: When using my Xbox360 Wireless Controller I can only use the left analog stick to play but the digital pad is not working.
This is may be caused by a wrong configuration file.

I am using Ubuntu 16.04 and installed fs-uae via apt-get (2.6.2+dfsg-3build1). I connected the controller and started fs-uae. The log says this which looks ok to me (full log attached):
Code:
configuring joystick port 0 (mouse)
configuring joystick port 1 (auto)
trying to auto-configure joystick 1 in port 1
configure joystick "JOYSTICK" for "amiga"
did not match device #0 (KEYBOARD)
did not match device #1 (MOUSE)
matched device #2
config name "xbox_360_wireless_receiver_17_4_1_0_linux"
get system config for device: xbox_360_wireless_receiver_17_4_1_0_linux
config file for xbox_360_wireless_receiver_17_4_1_0_linux was not found
did not find config for device "xbox_360_wireless_receiver_17_4_1_0_linux"
config name "xbox_360_wireless_receiver"
get system config for device: xbox_360_wireless_receiver
read config for xbox_360_wireless_receiver for amiga (from /usr/bin/../share/fs-uae/input/microsoft/xbox_360_wireless_receiver.ini)
read config for common_gamepad for amiga (from /usr/bin/../share/fs-uae/input/common/gamepad.ini)
read config for universal_gamepad for amiga (from /usr/bin/../share/fs-uae/input/universal_gamepad.ini)
error parsing "include"
did not find action for "common/gamepad"
But still the Dpad is not working.

I found this in the file /usr/share/fs-uae/input/microsoft/xbox_360_wireless_receiver.ini:
Code:
button_11 = dpad_left
button_12 = dpad_right
button_13 = dpad_up
button_14 = dpad_down
It says that the button 11, 12, 13 and 14 are my dpad buttons, right? But this seems wrong in my case. I used sdl-jstest (https://github.com/Grumbel/sdl-jstest) to inspect my gamepad and it told me that in my case the Dpad-buttons are 13, 14, 15 and 16.
When I edit the config files to match my buttons then the Dpad is working correctly.
But how come that my buttons do not match the shipped config files from fs-uae.
Is there anything I could do about it? I would rather not hand-modify my config files.

Thanks!
Attached Files
File Type: txt fs-uae.log.txt (48.0 KB, 151 views)
vbs is offline  
Old 10 September 2016, 12:55   #2
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Hi, then something is different on your system (compared to mine). I run Ubuntu 16.04 as well, and my Xbox 360 controller via the wireless receiver only has 15 buttons, not 17 as in your case. Maybe you have a custom Xbox 360 driver installed (?)

In any case, it was not intended that you modify the pre-installed config files. Instead, start FS-UAE Launcher and you can configure your gamepad graphically via settings.
FrodeSolheim is offline  
Old 10 September 2016, 13:44   #3
vbs
Registered User
 
Join Date: Sep 2016
Location: Germany
Posts: 19
Thanks for quick answer!

Well, possibly, I installed Retropie and I think they prefer xpad driver. Don't know what Ubuntu usually uses.

This is what usb-devices gives me:
Code:
T:  Bus=05 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs=  1
P:  Vendor=045e ProdID=0719 Rev=01.00
S:  Manufacturer=©Microsoft
S:  Product=Xbox 360 Wireless Receiver for Windows
S:  SerialNumber=FEED3B80
C:  #Ifs= 8 Cfg#= 1 Atr=a0 MxPwr=260mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=5d Prot=81 Driver=xpad
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=5d Prot=82 Driver=(none)
I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=5d Prot=81 Driver=xpad
I:  If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=5d Prot=82 Driver=(none)
I:  If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=5d Prot=81 Driver=xpad
I:  If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=5d Prot=82 Driver=(none)
I:  If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=5d Prot=81 Driver=xpad
I:  If#= 7 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=5d Prot=82 Driver=(none)
Is this different from yours?
vbs is offline  
Old 11 September 2016, 16:37   #4
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
No, looks very similar to mine... :-/

(But, could be that the Retropie installation pulls in newer driver versions or something...)
FrodeSolheim is offline  
Old 12 September 2016, 19:19   #5
vbs
Registered User
 
Join Date: Sep 2016
Location: Germany
Posts: 19
Well ok, thanks. For completness sake this is my xpad:
Code:
vbs@vbs-XS35:~$ lsmod | grep xpa
xpad                   28672  0
ff_memless             16384  1 xpad
vbs@vbs-XS35:~$ modinfo xpad
filename:       /lib/modules/4.4.0-36-generic/updates/dkms/xpad.ko
license:        GPL
description:    X-Box pad driver
author:         Marko Friedemann <mfr@bmx-chemnitz.de>
srcversion:     70B2ABE68F183F416AD2137
alias:          usb:v24C6p*d*dc*dsc*dp*icFFisc47ipD0in*
alias:          usb:v24C6p*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v24C6p*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v1BADp*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v1BADp*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v1689p*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v1689p*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v162Ep*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v162Ep*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v15E4p*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v15E4p*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v1532p*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v1532p*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v146Bp*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v146Bp*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v1430p*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v1430p*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v12ABp*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v12ABp*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v0F0Dp*d*dc*dsc*dp*icFFisc47ipD0in*
alias:          usb:v0F0Dp*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v0F0Dp*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v0E6Fp*d*dc*dsc*dp*icFFisc47ipD0in*
alias:          usb:v0E6Fp*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v0E6Fp*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v0738p*d*dc*dsc*dp*icFFisc47ipD0in*
alias:          usb:v0738p4540d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0738p*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v0738p*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v046Dp*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v046Dp*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v045Ep*d*dc*dsc*dp*icFFisc47ipD0in*
alias:          usb:v045Ep*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v045Ep*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v044Fp*d*dc*dsc*dp*icFFisc5Dip81in*
alias:          usb:v044Fp*d*dc*dsc*dp*icFFisc5Dip01in*
alias:          usb:v*p*d*dc*dsc*dp*ic58isc42ip00in*
depends:        ff-memless
vermagic:       4.4.0-36-generic SMP mod_unload modversions
parm:           dpad_to_buttons:Map D-PAD to buttons rather than axes for unknown pads (bool)
parm:           triggers_to_buttons:Map triggers to buttons rather than axes for unknown pads (bool)
parm:           sticks_to_null:Do not map sticks at all for unknown pads (bool)
parm:           auto_poweroff:Power off wireless controllers on suspend (bool)
vbs@vbs-XS35:~$
vbs is offline  
Old 28 September 2016, 09:33   #6
vbs
Registered User
 
Join Date: Sep 2016
Location: Germany
Posts: 19
Gamepad stopped working entirely

I had fs-uae running fine already but yesterday I noticed that my Xbox360 gamepad stopped working entirely. It gets detected fine and shows up in the UI as "Xbox 360 Controller Wireless" but no button reactions at all.
I am currently using version 2.8 from the PPA and I noticed that my directory /usr/share/fs-uae is nearly empty. In the past there were lots of controller config inside there. Maybe that is the problem?

It looks like this now:
Code:
root@vbs-XS35:/usr/share/fs-uae# ls -al
total 1244
drwxr-xr-x   2 root root    4096 Sep 28 08:39 .
drwxr-xr-x 250 root root   12288 Sep 28 08:39 ..
-rw-r--r--   1 root root 1255204 Sep 14 23:06 fs-uae.dat
-rw-r--r--   1 root root       0 Sep 14 23:06 share-dir
This is the log:
http://pastebin.com/UTBdQM8G

Any hints please? Thanks!
vbs is offline  
Old 28 September 2016, 17:41   #7
vbs
Registered User
 
Join Date: Sep 2016
Location: Germany
Posts: 19
Installing the Ubuntu version with made the Gamepod work again:
Code:
apt-get install fs-uae=2.6.2+dfsg-3build1
Also /usr/share/fs-uae is filled again.
vbs is offline  
Old 28 September 2016, 19:11   #8
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
I'll try to reproduce the issue...

(The "missing" files in /usr/share/fs-uae is not a mistake. They are instead contained in fs-uae.dat)
FrodeSolheim is offline  
Old 28 September 2016, 19:32   #9
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
What distro version are you using?

It will probably work if you install 2.8 and run the configuration tool in FS-UAE Launcher: Settings -> Joysticks & Gamepads, double-click on the gamepad entry there.

It *may* appear that the device is already configured. But still, please click on each button/hat/axis and re-assign for your gamepad. Then click save. The result of this (2 files) will be stored in ~/Documents/FS-UAE/Controllers. Please also send these files to frode@fs-uae.net for analysis and possible inclusion in the next version.
FrodeSolheim 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
How to enable 2nd XBOX360 controller for 2 player games reddwarf4ever support.FS-UAE 11 16 January 2016 11:29
Xbox360 Controller not working in WinUAE on Windows 10 TP Snake79 support.WinUAE 4 02 May 2015 11:55
mapping xbox360 pad to use dpad lostfriend support.FS-UAE 1 01 October 2014 21:34
D-Pad input (Xbox360 controller) partially broken in 2.6.1 Dr.Venom support.WinUAE 6 25 June 2013 12:15
WTB: Any Xbox360 controller Smiley MarketPlace 18 14 December 2008 00:16

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 03:48.

Top

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