linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* X window don't read my input device automatically
@ 2009-06-19  2:55 guo jerry
  2009-06-30  2:31 ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: guo jerry @ 2009-06-19  2:55 UTC (permalink / raw)
  To: linux-input

Hi all,
        I have written my multi-touch panel device driver and register
two input devices.
        they appear in /dev/input/event7 & /dev/input/event8. The
problem is that why
        X window can read other mouse devices automatically and work under X
        environment but the device driver written by my own cannot.
        I guess that if the evbit and keybit which I set is not correctly.
        I set my evbit & keybit as following:

        input->evbit[0] = BIT_MASK(EV_KEY) || BIT_MASK(EV_ABS);
        input->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);

        I'd like solve the problem first then take into issue  that how to make
        multi-touch work in MPX.

        Thanks in advanced.
--
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] 3+ messages in thread

* Re: X window don't read my input device automatically
  2009-06-19  2:55 X window don't read my input device automatically guo jerry
@ 2009-06-30  2:31 ` Dmitry Torokhov
  2009-07-04 17:12   ` guo jerry
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Torokhov @ 2009-06-30  2:31 UTC (permalink / raw)
  To: guo jerry; +Cc: linux-input

On Fri, Jun 19, 2009 at 10:55:20AM +0800, guo jerry wrote:
> Hi all,
>         I have written my multi-touch panel device driver and register
> two input devices.
>         they appear in /dev/input/event7 & /dev/input/event8. The
> problem is that why
>         X window can read other mouse devices automatically and work under X
>         environment but the device driver written by my own cannot.
>         I guess that if the evbit and keybit which I set is not correctly.
>         I set my evbit & keybit as following:
> 
>         input->evbit[0] = BIT_MASK(EV_KEY) || BIT_MASK(EV_ABS);

I don't think you want 'logical or' here but rather a bitwise one.

-- 
Dmitry
--
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] 3+ messages in thread

* Re: X window don't read my input device automatically
  2009-06-30  2:31 ` Dmitry Torokhov
@ 2009-07-04 17:12   ` guo jerry
  0 siblings, 0 replies; 3+ messages in thread
From: guo jerry @ 2009-07-04 17:12 UTC (permalink / raw)
  To: Dmitry Torokhov, linux-input

thanks for your corrections :)

2009/6/30 Dmitry Torokhov <dmitry.torokhov@gmail.com>:
> On Fri, Jun 19, 2009 at 10:55:20AM +0800, guo jerry wrote:
>> Hi all,
>>         I have written my multi-touch panel device driver and register
>> two input devices.
>>         they appear in /dev/input/event7 & /dev/input/event8. The
>> problem is that why
>>         X window can read other mouse devices automatically and work under X
>>         environment but the device driver written by my own cannot.
>>         I guess that if the evbit and keybit which I set is not correctly.
>>         I set my evbit & keybit as following:
>>
>>         input->evbit[0] = BIT_MASK(EV_KEY) || BIT_MASK(EV_ABS);
>
> I don't think you want 'logical or' here but rather a bitwise one.
>
> --
> Dmitry
>
--
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] 3+ messages in thread

end of thread, other threads:[~2009-07-04 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-19  2:55 X window don't read my input device automatically guo jerry
2009-06-30  2:31 ` Dmitry Torokhov
2009-07-04 17:12   ` guo jerry

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).