linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Freeze <freeze@free.fr>
To: linux-hotplug@vger.kernel.org
Subject: New mousedev device!
Date: Thu, 04 Jul 2002 14:03:49 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-102579147723532@msgid-missing> (raw)

Hi,
   I have a new device that could work with th input/mousedev driver. It is a 
thrust graic tablet. But it's recognized as a relative mouse, but I'd like to 
told the mousedev that it is an absolute device.

   In the hotplug device description, what is the number position that is 
used for the driver option.

Thanks,
Freeze
---
Here is an extract of the mousedev.c code: I mean, can i change the 
dev->evbit by changing the hotplug description of my device in the file 
/etc/hotplug/usb.distmap?
---
static struct input_handle *mousedev_connect(struct input_handler *handler, 
struct input_dev *dev)
{
	struct mousedev *mousedev;
	int minor = 0;

	if (!test_bit(EV_KEY, dev->evbit) ||
	   (!test_bit(BTN_LEFT, dev->keybit) && !test_bit(BTN_TOUCH, dev->keybit)))
		return NULL;

	if ((!test_bit(EV_REL, dev->evbit) || !test_bit(REL_X, dev->relbit)) &&
	    (!test_bit(EV_ABS, dev->evbit) || !test_bit(ABS_X, dev->absbit)))
		return NULL;


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2002-07-04 14:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-04 14:03 Freeze [this message]
2002-07-04 21:25 ` New mousedev device! Brad Hards

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=marc-linux-hotplug-102579147723532@msgid-missing \
    --to=freeze@free.fr \
    --cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).