LKML Archive on
help / color / mirror / Atom feed
From: Frank Salomon <>
Subject: EV_MSC / driver/input/input.c (Input Handler)
Date: Thu, 08 Feb 2007 09:56:01 +0100	[thread overview]
Message-ID: <> (raw)

Hi All,

I had written an additional input_handler :

      static struct input_device_id pcraw_ids[] = {
                      .flags = INPUT_DEVICE_ID_MATCH_EVBIT,
                      .evbit = { BIT(EV_MSC) },
	     { },    /* Terminating entry */

to get MSC_RAW events from the atkeyboard :

      input_event (&atkbd->dev, EV_MSC, MSC_RAW, code)

But I only get these events :

      input_event(&atkbd->dev, EV_MSC, MSC_SCAN, code);

I know the reason is in driver/input/input.c :

      case EV_MSC:
           if (code > MSC_MAX || !test_bit(code, dev->mscbit))

           if (dev->event) dev->event(dev, type, code, value);

because of (driver/input/keyboard/atkbd.c):

      atkbd->dev.mscbit[0] = atkbd->softraw ? BIT(MSC_SCAN) :
           BIT(MSC_RAW) | BIT(MSC_SCAN);

I would like to change driver/input/input.c like this :

      case EV_MSC:
           if (code > MSC_MAX)

           if (test_bit(code, dev->mscbit))
                if (dev->event) dev->event(dev, type, code, value);

Any comments ? Maybe I misunderstand the concept of the input events. In 
that case, please give me a short description or let me know were I can 
find any documentation.

Best regards, Frank

             reply	other threads:[~2007-02-08 10:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-08  8:56 Frank Salomon [this message]
2007-02-08 15:15 ` Dmitry Torokhov
2007-02-09  7:15   ` Frank Salomon
2007-02-09 14:36     ` Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: EV_MSC / driver/input/input.c (Input Handler)' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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