Skip to contentSkip to conversation

plugins/sixaxis: Add Sony Navigation Controller

PATCH In review Alex Gal 2 participants 3 messages Nov 6, 2014 – Nov 7, 2014 Bluetooth drivers

lore
Share & tools
lore

Alex Gal

author
#0 lore raw

PATCH 1/2 plugins/sixaxis: Add Sony Navigation Controller

---
 plugins/sixaxis.c | 7 +++++++
 1 file changed, 7 insertions(+)
plugins/sixaxis.c +7 -0
index b09404a..ac53ba9 100644
@@ -60,6 +60,13 @@ static const struct {
 		.pid = 0x0268,
 		.version = 0x0000,
 	},
+	{
+		.name = "Navigation Controller",
+		.source = 0x0002,
+		.vid = 0x054c,
+		.pid = 0x042f,
+		.version = 0x0000,
+	},
 };
 
 struct leds_data {
Signature · 1 line
2.1.1
author
#1 lore raw

PATCH 2/2 profiles/input: Add Sony Navigation Controller

---
 profiles/input/server.c | 4 ++++
 1 file changed, 4 insertions(+)
profiles/input/server.c +4 -0
index 307db96..50a9074 100644
@@ -140,6 +140,10 @@ static bool dev_is_sixaxis(const bdaddr_t *src, const bdaddr_t *dst)
 	if (vid == 0x054c && pid == 0x05c4)
 		return true;
 
+	/* Navigation Controller */
+	if (vid == 0x054c && pid == 0x042f)
+		return true;
+
 	return false;
 }
 
Signature · 1 line
2.1.1
#2 lore raw
In reply to Alex Gal

Hi Alex,

Quoted 12 lines · On Thursday 06 of November 2014 10:29:13 Alex Gal wrote:
---
 plugins/sixaxis.c | 7 +++++++
 1 file changed, 7 insertions(+)
plugins/sixaxis.c +0 -0
index b09404a..ac53ba9 100644
@@ -60,6 +60,13 @@ static const struct {
 		.pid = 0x0268,
 		.version = 0x0000,
 	},

plugins/sixaxis.c static const struct { · line 72

Quoted 10 lines
plugins/sixaxis.c +7 -0
+	{
+		.name = "Navigation Controller",
+		.source = 0x0002,
+		.vid = 0x054c,
+		.pid = 0x042f,
+		.version = 0x0000,
+	},
 };
 
 struct leds_data {

Both patches applied, thanks.

Signature · 2 lines
BR
Szymon Janc