From: "v1kt0p.rus@gmail.com" <v1kt0p.rus@gmail.com>
To: linux-input@vger.kernel.org
Subject: How write driver for gamepad, that detected by usbhid but not work correctly?
Date: Sun, 29 Sep 2013 12:22:48 +0300 [thread overview]
Message-ID: <5247F168.10008@gmail.com> (raw)
I have "Genesis to USB adapter" and two genesis gamepads. On windows it
is work correctly. On linux do not work "left" and "up" buttons on
D-pad, and two gamepads appear as one with double buttons.
At first I tried to write usb driver(usb_register), but when I connect
gamepad system choose usbhid driver not my. When I unplug gamepad system
call "probe" in my driver, but then immediately call "disconnect". Is
there a way to force the system to choose my driver first?
Than I tried to write hid driver(hid_register_driver), but "probe" is
not called. I can not find documentation describing how to make a
working driver for hid, it exists at all?
What is the correct way to write a driver for the gamepad? What am I
doing wrong?
next reply other threads:[~2013-09-29 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-29 9:22 v1kt0p.rus [this message]
2013-09-29 9:39 ` How write driver for gamepad, that detected by usbhid but not work correctly? Bruno Prémont
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=5247F168.10008@gmail.com \
--to=v1kt0p.rus@gmail.com \
--cc=linux-input@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.