OSDN Git Service

Save name for the sixaxis controller
authorBastien Nocera <hadess@hadess.net>
Wed, 15 Oct 2008 14:28:42 +0000 (15:28 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 15 Oct 2008 23:46:09 +0000 (01:46 +0200)
The name won't be there until we connect otherwise

input/sixpair.c

index 3a2bd32..5c58b9b 100644 (file)
@@ -206,6 +206,7 @@ handle_device (libusb_device *dev, struct libusb_config_descriptor *cfg, int itf
                str2ba(option_master, &src);
                str2ba(device, &dst);
                write_device_profiles(&src, &dst, "");
+               write_device_name(&src, &dst, "PLAYSTATION(R)3 Controller");
                sdp_record_free(rec);
 
                if (set_master_bdaddr (devh, itfnum, option_master) == FALSE) {