From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Todd Showalter <todd@electronjump.com>
Cc: David Herrmann <dh.herrmann@gmail.com>,
Antonio Ospite <ospite@studenti.unina.it>,
"open list:HID CORE LAYER" <linux-input@vger.kernel.org>
Subject: Re: Game Controllers
Date: Thu, 2 May 2013 13:18:08 -0700 [thread overview]
Message-ID: <20130502201807.GE28625@core.coreip.homeip.net> (raw)
In-Reply-To: <CAFmpkyhRSi5Q2uwsJ7eH6VYJ40zFzp2T6=6fFU9eU09dWkg0zA@mail.gmail.com>
On Thu, May 02, 2013 at 03:54:45PM -0400, Todd Showalter wrote:
> On Thu, May 2, 2013 at 2:29 PM, Dmitry Torokhov
> <dmitry.torokhov@gmail.com> wrote:
>
> >> - any mapping library is going to have to be a mirror of the kernel
> >> code, which means it's basically just a lot of duplicated effort with
> >> the added penalty of update lag
> >
> > The library can do much more than that. You also need to calibrate the
> > device (per user), adjust it to user's tastes and so on. Maybe you have
> > a user that is left-handed and you'd like to remap some keys? It is
> > certainly not kernel's job.
>
> I think calibration, dead-zones, easing, button remapping and the
> like are a totally orthogonal problem. They are nice to have, but
> that's the kind of thing that belongs in a desktop environment's
> accessibility settings, not at the input protocol level.
>
> > There also should not be lag if new devices follow the agreed upon
> > mapping.
>
> If we can have that, at least, it means the problem is eventually
> fixed. Maybe not for years, but at least someday.
>
> > The same thing can be done in a library. Libraries are easier then
> > kernels, you do not need to consume memory until needed and you do not
> > need to do the conversion if it is not needed. And it should be possible
> > to update the library whereas with kernel you mist likely need to reboot
> > the box.
> >
> > Why do people believe that patching the kernel is easier than updating
> > userspace?
>
> The kernel is the core of the system; Linux isn't Linux without
> the Linux kernel. If I make a game input library and try to get
> people to use it, there's a whole chicken-and-egg problem of getting
> developers to support something nobody has installed, and getting
> users to install something no developers support. I have to convince
> the distros to pick it up, and to keep updating it. I have to monitor
> changes in the kernel codebase to see if the library needs updating.
> I have to deal with the possibility that the library becomes a useful
> bandaid, with people saying "meh, this is a hard problem, punt the fix
> to the library". I have to hope that telling players to install
> another dependency isn't going to lose me customers.
Until you get a traction with the new you might need to distribute it
with your game. Another option would be to extend already established
library, such as SDL, with the required functionality.
>
> The kernel has authority that a library does not, and it has a
> distribution mechanism that a library does not. The kernel is
> effectively the source of the data; all I can do outside of that is
> provide a filter and hope people use it.
No, I do not think so. Kernel provides a level of abstraction, but so
does X, ALSA, given desktop environment and so forth. If a task does not
require hardware access (and translating input events form one type to
another does not) one should think really hard whether it should be
done in kernel.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2013-05-02 20:18 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-27 0:13 Game Controllers Todd Showalter
2013-04-29 21:04 ` Dmitry Torokhov
2013-04-30 0:46 ` Todd Showalter
2013-05-02 6:35 ` Antonio Ospite
2013-05-02 13:46 ` Todd Showalter
2013-05-02 14:09 ` David Herrmann
2013-05-02 15:37 ` Todd Showalter
2013-05-02 16:55 ` Dmitry Torokhov
2013-05-02 15:58 ` Todd Showalter
2013-05-02 16:38 ` Dmitry Torokhov
2013-05-02 17:06 ` Todd Showalter
2013-05-02 18:29 ` Dmitry Torokhov
2013-05-02 19:54 ` Todd Showalter
2013-05-02 20:18 ` Dmitry Torokhov [this message]
2013-05-02 20:30 ` Todd Showalter
2013-05-02 20:49 ` Dmitry Torokhov
2013-05-02 17:01 ` Dmitry Torokhov
2013-05-02 17:35 ` Todd Showalter
2013-05-02 17:54 ` David Herrmann
2013-05-02 19:10 ` Todd Showalter
2013-05-02 20:45 ` Dmitry Torokhov
2013-05-02 21:10 ` Todd Showalter
2013-05-03 15:50 ` Dmitry Torokhov
2013-09-07 17:01 ` Bastien Nocera
2013-05-03 10:29 ` Simon Farnsworth
2013-05-03 12:57 ` Todd Showalter
2013-05-03 16:01 ` Dmitry Torokhov
2013-05-03 17:12 ` Todd Showalter
2013-05-03 22:03 ` Ignaz Forster
2013-05-04 13:48 ` Todd Showalter
2013-05-02 3:25 ` Ray Dillinger
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=20130502201807.GE28625@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=dh.herrmann@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=ospite@studenti.unina.it \
--cc=todd@electronjump.com \
/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).