Re: [RFC PATCH] Wiimote joystick reports no axes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello David

On Mon, Jun 4, 2012 at 4:48 PM, David Herrmann
<dh.herrmann@xxxxxxxxxxxxxx> wrote:
> Hi Giuseppe
>
> The changes look good to me. They still allow us to disable the
> accelerometer on the device, if no-one uses the accelerometer-input so
> power-management still works. However, we are now duplicating the
> events which I wanted to avoid in the beginning.

Yes, I must say that I'm not crazy about this fact either. A possible
solution could be to not report the keys on the Remote device when
they are reported on the Accel device, or to have some kind of switch
to determine on which device(s) they should be reported (defaulting to
both). But maybe this is overengineering it?

> I have never used the joydev interface. In fact, I don't even know why
> it exists and what it does different compared to evdev. Therefore, I
> recommend CC'ing Dmitry or Jiri to let them comment on your ideas. But
> I guess they recommend using uinput to get the same result. That is,
> creating a fake input device from userspace that collects data from
> all the Wii Remote input devices and only sends the requested ones.
> This would also allow applications that are _not_ aware of Wii Remotes
> to use them. It would also provide much more configurability and
> extensibility. There is also a xf86-input-xwiimote XInput2 driver that
> can provide the same functionality to programs/games using XInput2.

The nice thing about the joydev interfaces is that it allows using the
device (possibly with some limitations) with games that already
support this interface, without needing specific wiimote support or
awareness, and without requiring additional drivers. As long as it
doesn't conflict with other usages, I think it's all value-add 8-)

> Anyway, feel free to send this patch to linux-input as proper git
> patch and CC Jiri and Dmitry. I have nothing to object here but I also
> don't see the reason to support joydev with Wii Remotes.

Ok, I'll prepare the patch, thanks.

-- 
Giuseppe "Oblomov" Bilotta
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux