Thread (3 messages) 3 messages, 2 authors, 2009-07-04

Re: X window don't read my input device automatically

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2009-06-30 02:31:43

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help