mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: dylan@ultimation.org
Cc: greg@kroah.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Support for Snapstream Firefly remote added to ati_remote.c
Date: Wed, 22 Sep 2004 07:07:21 +0200	[thread overview]
Message-ID: <20040922050721.GA4532@ucw.cz> (raw)
In-Reply-To: <16359.69.25.132.5.1095795335.squirrel@69.25.132.5>

On Tue, Sep 21, 2004 at 12:35:35PM -0700, dylan@ultimation.org wrote:

> >> @@ -460,6 +479,7 @@ static void ati_remote_input_report(stru
> >>         struct input_dev *dev = &ati_remote->idev;
> >>         int index, acc;
> >>         int remote_num;
> >> +       int ev_type;
> >>
> >>         /* Deal with strange looking inputs */
> >>         if ( (urb->actual_length != 4) || (data[0] != 0x14) ||
> >> @@ -492,7 +512,9 @@ static void ati_remote_input_report(stru
> >>
> >>         if (ati_remote_tbl[index].kind == KIND_LITERAL) {
> >>                 input_regs(dev, regs);
> >> -               input_event(dev, ati_remote_tbl[index].type,
> >> +
> >> +               ev_type = ((disable_keyboard) ? 0 : >
> >> ati_remote_tbl[index].type);
> >> +               input_event(dev, ev_type,
> >>                         ati_remote_tbl[index].code,
> >>                         ati_remote_tbl[index].value);
> >>                 input_sync(dev);
> >
> > I won't let you abuse the input API this way. Event type 0 is EV_SYN and
> > is reserved for synchronization and configuration change notifications.
> > Definitely not for sending events that look like keystrokes but aren't.
> >
> > There is a nice ioctl, called EVIOCGRAB which will give you what you
> > want (the console won't be receiving the events anymore) without any
> > ugly hacks.
> >
> 
> Sorry for the hacks, I'm still learning about how this all works. I was
> just excited that I was able to get it "work" at all, even if it was
> really ugly. ;)  I'll look into EVIOCGRAB and touch up the patch before
> thinking about resubmitting again. Thanks for the input!
 
Ok, I'll be looking forward to your patch. :)

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

  reply	other threads:[~2004-09-22  5:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-21 18:35 dylan
2004-09-21 19:07 ` Vojtech Pavlik
2004-09-21 19:35   ` dylan
2004-09-22  5:07     ` Vojtech Pavlik [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-09-21 18:16 dylan

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20040922050721.GA4532@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=dylan@ultimation.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®