FalkTX, thanks for all of your work on this.
I have used your program on my ubuntu machine for quite a while. I recently have been trying to get it up and running on my raspberry pi (Debian Wheezy based PiMAME image). I got sixad compiled and installed fine and the controller connects and is recognized as a joystick. The problem is that the emulators that I have tried (AdvanceMAME and MAME4all) do not recognize the cross, circle, or triangle buttons as inputs. When i try jstest or hidraw-dump the buttons clearly are working.
My solution was to create a /var/lib/sixad/profiles/default config file and specify that i wanted to use input instead of joystick mode. i then specified all of the keypresses i wanted to use for input. But everytime i connect it is still seen as a joystick. It is like sixad is not reading my config files and only using the internal defaults. i tried copying my default file to a mac address specific one and it did not help. i have inluded the contents of my default config below.
Code:
# ##########################
# sixad configuration file #
########################## #
# Features
enable_leds 1
enable_joystick 0
enable_input 1
enable_remote 0
enable_rumble 0
enable_timeout 1
# LED
led_n_auto 1
led_n_number 1
led_anim 1
# Joystick
enable_buttons 1
enable_sbuttons 1
enable_axis 1
enable_accel 0
enable_accon 0
enable_speed 0
enable_pos 0
# Input - None
key_select 25
key_l3 6
key_r3 15
key_start 28
key_up 103
key_right 106
key_down 108
key_left 105
key_l2 47
key_r2 46
key_l1 45
key_r1 44
key_tri 42
key_cir 56
key_squ 57
key_cro 29
key_ps 1
axis_left_type 2
axis_left_up 18
axis_left_right 33
axis_left_down 32
axis_left_left 31
axis_right_type 2
axis_right_up 23
axis_right_right 38
axis_right_down 37
axis_right_left 36
axis_speed 6
use_lr3 0
# Remote
remote_numberic 1
remote_dvd 1
remote_directional 1
remote_multimedia 1
# Rumble
old_rumble_mode 0
# Timeout
timeout_mins 30
# Misc
out_of_reach_disconnects 0
Also, when i run sixad in the for ground I get the following message:
Code:
pi@raspberrypi ~ $ sudo sixad --start
sixad-bin[2494]: started
sixad-bin[2494]: sixad started, press the PS button now
sixad-bin[2494]: unable to connect to sdp session
sixad-bin[2494]: Connected Sony Computer Entertainment Wireless Controller (60:38:0E:75:A1:D4)
I do not know is the sdp session error is causing sixad to use it's internal defaults or if this is unrelated.
Sorry i had to post this in the Ubunut forums, but this was the only place to get help mentioned on your website and I have not been able to find a solution on the rPi forums or Google. Thanks for any help you can provide.
Bookmarks