linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] plugins/sixaxis: Use the same device name as the kernel
@ 2017-08-07 22:48 Nicolas Werner
  2017-08-08 11:52 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Werner @ 2017-08-07 22:48 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Nicolas Werner

Some games check the device name to recognize a playstation controller.
This changes the device name, when using a PS3 controller over
bluetooth, to match the device name, that is advertised when using the
controller via USB.
---
 plugins/sixaxis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/sixaxis.c b/plugins/sixaxis.c
index fcc93bc60..7e3c950b4 100644
--- a/plugins/sixaxis.c
+++ b/plugins/sixaxis.c
@@ -56,7 +56,7 @@ static const struct {
 	uint16_t version;
 } devices[] = {
 	{
-		.name = "PLAYSTATION(R)3 Controller",
+		.name = "Sony PLAYSTATION(R)3 Controller",
 		.source = 0x0002,
 		.vid = 0x054c,
 		.pid = 0x0268,
-- 
2.13.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] plugins/sixaxis: Use the same device name as the kernel
  2017-08-07 22:48 [PATCH] plugins/sixaxis: Use the same device name as the kernel Nicolas Werner
@ 2017-08-08 11:52 ` Szymon Janc
  0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2017-08-08 11:52 UTC (permalink / raw)
  To: Nicolas Werner; +Cc: linux-bluetooth

Hi Nicolas,

On Tuesday, 8 August 2017 00:48:33 CEST Nicolas Werner wrote:
> Some games check the device name to recognize a playstation controller.
> This changes the device name, when using a PS3 controller over
> bluetooth, to match the device name, that is advertised when using the
> controller via USB.
> ---
>  plugins/sixaxis.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/plugins/sixaxis.c b/plugins/sixaxis.c
> index fcc93bc60..7e3c950b4 100644
> --- a/plugins/sixaxis.c
> +++ b/plugins/sixaxis.c
> @@ -56,7 +56,7 @@ static const struct {
>  	uint16_t version;
>  } devices[] = {
>  	{
> -		.name = "PLAYSTATION(R)3 Controller",
> +		.name = "Sony PLAYSTATION(R)3 Controller",
>  		.source = 0x0002,
>  		.vid = 0x054c,
>  		.pid = 0x0268,

Patch applied, thanks.

-- 
pozdrawiam
Szymon Janc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-08 11:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 22:48 [PATCH] plugins/sixaxis: Use the same device name as the kernel Nicolas Werner
2017-08-08 11:52 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).