* [PATCH] HID: multitouch: add PID for Fructel product
@ 2012-03-19 14:41 Andreas Nielsen
2012-03-19 15:43 ` Mohamed Ikbel Boulabiar
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Nielsen @ 2012-03-19 14:41 UTC (permalink / raw)
To: linux-input
Cc: benjamin.tissoires, chatty, dmitry.torokhov, jkosina,
Andreas Nielsen
Adds multitouch support for the Gametel Android game controller
Signed-off-by: Andreas Nielsen <eas@svep.se>
---
drivers/hid/hid-core.c | 1 +
drivers/hid/hid-ids.h | 3 +++
drivers/hid/hid-multitouch.c | 5 +++++
3 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 6f3289a..dbb7a7b 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1378,6 +1378,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_ELO, USB_DEVICE_ID_ELO_TS2515) },
{ HID_USB_DEVICE(USB_VENDOR_ID_EMS, USB_DEVICE_ID_EMS_TRIO_LINKER_PLUS_II) },
{ HID_USB_DEVICE(USB_VENDOR_ID_EZKEY, USB_DEVICE_ID_BTC_8193) },
+ { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_FRUCTEL, USB_DEVICE_ID_GAMETEL_MT_MODE) },
{ HID_USB_DEVICE(USB_VENDOR_ID_GAMERON, USB_DEVICE_ID_GAMERON_DUAL_PSX_ADAPTOR) },
{ HID_USB_DEVICE(USB_VENDOR_ID_GAMERON, USB_DEVICE_ID_GAMERON_DUAL_PCS_ADAPTOR) },
{ HID_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH, USB_DEVICE_ID_GENERAL_TOUCH_WIN7_TWOFINGERS) },
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index c946d90..452d845 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -248,6 +248,9 @@
#define USB_VENDOR_ID_EZKEY 0x0518
#define USB_DEVICE_ID_BTC_8193 0x0002
+#define USB_VENDOR_ID_FRUCTEL 0x25B6
+#define USB_DEVICE_ID_GAMETEL_MT_MODE 0x0002
+
#define USB_VENDOR_ID_GAMERON 0x0810
#define USB_DEVICE_ID_GAMERON_DUAL_PSX_ADAPTOR 0x0001
#define USB_DEVICE_ID_GAMERON_DUAL_PCS_ADAPTOR 0x0002
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 5de25ff..3eea20c 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -667,6 +667,11 @@ static const struct hid_device_id mt_devices[] = {
HID_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
USB_DEVICE_ID_GENERAL_TOUCH_WIN7_TWOFINGERS) },
+ /* Gametel game controller */
+ { .driver_data = MT_CLS_DEFAULT,
+ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_FRUCTEL,
+ USB_DEVICE_ID_GAMETEL_MT_MODE) },
+
/* GoodTouch panels */
{ .driver_data = MT_CLS_DEFAULT,
HID_USB_DEVICE(USB_VENDOR_ID_GOODTOUCH,
--
1.7.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] HID: multitouch: add PID for Fructel product
2012-03-19 14:41 [PATCH] HID: multitouch: add PID for Fructel product Andreas Nielsen
@ 2012-03-19 15:43 ` Mohamed Ikbel Boulabiar
2012-03-19 16:03 ` Andreas Nielsen
0 siblings, 1 reply; 6+ messages in thread
From: Mohamed Ikbel Boulabiar @ 2012-03-19 15:43 UTC (permalink / raw)
To: Andreas Nielsen
Cc: linux-input, benjamin.tissoires, chatty, dmitry.torokhov, jkosina
On Mon, Mar 19, 2012 at 3:41 PM, Andreas Nielsen <eas@svep.se> wrote:
> Adds multitouch support for the Gametel Android game controller
Where's put the mt surface in the controller?
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] HID: multitouch: add PID for Fructel product
2012-03-19 15:43 ` Mohamed Ikbel Boulabiar
@ 2012-03-19 16:03 ` Andreas Nielsen
2012-03-19 17:30 ` Mohamed Ikbel Boulabiar
2012-03-20 11:25 ` Jiri Kosina
0 siblings, 2 replies; 6+ messages in thread
From: Andreas Nielsen @ 2012-03-19 16:03 UTC (permalink / raw)
To: Mohamed Ikbel Boulabiar
Cc: linux-input@vger.kernel.org, benjamin.tissoires@enac.fr,
chatty@enac.fr, dmitry.torokhov@gmail.com, jkosina@suse.cz
The multitouch events are emulated by the Gametel device. Each physical button is configured to generate a MT event on a specific coordinate. This seems to be the only way for us to support Android games that doesn't support HID gamepads. It is possible to inject MT events at Android level, but this requires the user to root their phone which isn't realistic for our users.
/Andreas
-----Original Message-----
From: linux-input-owner@vger.kernel.org [mailto:linux-input-owner@vger.kernel.org] On Behalf Of Mohamed Ikbel Boulabiar
Sent: den 19 mars 2012 16:43
To: Andreas Nielsen
Cc: linux-input@vger.kernel.org; benjamin.tissoires@enac.fr; chatty@enac.fr; dmitry.torokhov@gmail.com; jkosina@suse.cz
Subject: Re: [PATCH] HID: multitouch: add PID for Fructel product
On Mon, Mar 19, 2012 at 3:41 PM, Andreas Nielsen <eas@svep.se> wrote:
> Adds multitouch support for the Gametel Android game controller
Where's put the mt surface in the controller?
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] HID: multitouch: add PID for Fructel product
2012-03-19 16:03 ` Andreas Nielsen
@ 2012-03-19 17:30 ` Mohamed Ikbel Boulabiar
2012-03-20 11:25 ` Jiri Kosina
1 sibling, 0 replies; 6+ messages in thread
From: Mohamed Ikbel Boulabiar @ 2012-03-19 17:30 UTC (permalink / raw)
To: Andreas Nielsen
Cc: linux-input@vger.kernel.org, benjamin.tissoires@enac.fr,
chatty@enac.fr, dmitry.torokhov@gmail.com, jkosina@suse.cz
On Mon, Mar 19, 2012 at 5:03 PM, Andreas Nielsen <eas@svep.se> wrote:
> The multitouch events are emulated by the Gametel device. Each physical button is configured to generate a MT event on a specific coordinate. This seems to be the only way for us to support Android games that doesn't support HID gamepads. It is possible to inject MT events at Android level, but this requires the user to root their phone which isn't realistic for our users.
Cool, the explanation that I need !
Thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] HID: multitouch: add PID for Fructel product
2012-03-19 16:03 ` Andreas Nielsen
2012-03-19 17:30 ` Mohamed Ikbel Boulabiar
@ 2012-03-20 11:25 ` Jiri Kosina
2012-03-20 12:12 ` Andreas Nielsen
1 sibling, 1 reply; 6+ messages in thread
From: Jiri Kosina @ 2012-03-20 11:25 UTC (permalink / raw)
To: Andreas Nielsen
Cc: Mohamed Ikbel Boulabiar, linux-input@vger.kernel.org,
benjamin.tissoires@enac.fr, chatty@enac.fr,
dmitry.torokhov@gmail.com
On Mon, 19 Mar 2012, Andreas Nielsen wrote:
> The multitouch events are emulated by the Gametel device. Each physical
> button is configured to generate a MT event on a specific coordinate.
> This seems to be the only way for us to support Android games that
> doesn't support HID gamepads. It is possible to inject MT events at
> Android level, but this requires the user to root their phone which
> isn't realistic for our users.
Andreas,
I will be updating the Changelog message with this bit of explanation
before comitting the patch, ok?
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] HID: multitouch: add PID for Fructel product
2012-03-20 11:25 ` Jiri Kosina
@ 2012-03-20 12:12 ` Andreas Nielsen
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Nielsen @ 2012-03-20 12:12 UTC (permalink / raw)
To: Jiri Kosina
Cc: Mohamed Ikbel Boulabiar, linux-input@vger.kernel.org,
benjamin.tissoires@enac.fr, chatty@enac.fr,
dmitry.torokhov@gmail.com
Hi Jiri,
sounds good to me.
Thanks
/Andreas
-----Original Message-----
From: Jiri Kosina [mailto:jkosina@suse.cz]
Sent: den 20 mars 2012 12:26
To: Andreas Nielsen
Cc: Mohamed Ikbel Boulabiar; linux-input@vger.kernel.org; benjamin.tissoires@enac.fr; chatty@enac.fr; dmitry.torokhov@gmail.com
Subject: RE: [PATCH] HID: multitouch: add PID for Fructel product
On Mon, 19 Mar 2012, Andreas Nielsen wrote:
> The multitouch events are emulated by the Gametel device. Each
> physical button is configured to generate a MT event on a specific coordinate.
> This seems to be the only way for us to support Android games that
> doesn't support HID gamepads. It is possible to inject MT events at
> Android level, but this requires the user to root their phone which
> isn't realistic for our users.
Andreas,
I will be updating the Changelog message with this bit of explanation before comitting the patch, ok?
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-03-20 12:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-19 14:41 [PATCH] HID: multitouch: add PID for Fructel product Andreas Nielsen
2012-03-19 15:43 ` Mohamed Ikbel Boulabiar
2012-03-19 16:03 ` Andreas Nielsen
2012-03-19 17:30 ` Mohamed Ikbel Boulabiar
2012-03-20 11:25 ` Jiri Kosina
2012-03-20 12:12 ` Andreas Nielsen
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).