Re: [RFC 24/26] HID: wiimote: support Nintendo Wii U Pro Controller

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

 



Hi Todd

On Mon, May 6, 2013 at 2:43 AM, Todd Showalter <todd@xxxxxxxxxxxxxxxx> wrote:
> On Sun, May 5, 2013 at 5:13 PM, David Herrmann <dh.herrmann@xxxxxxxxx> wrote:
>
>> The Wii U Pro Controller is a new Nintendo remote device that looks very
>> similar to the XBox controller. It has nearly the same features and uses
>> the same protocol as the Wii Remote.
>
>     As with the classic controller, could this please be mapped to the
> standard gamepad where possible?

> - left stick to ABS_LX, ABS_LY
> - right stick to ABS_RX, ABS_RY

These make sense to me, indeed.

> - dpad to ABS_DX, ABS_DY

These are digital buttons on this gamepad. What's wrong with
KEY_{left, right, up, down}? Or I would prefer BTN_{left, right, up,
down} instead.

> - left trigger to ABS_LTRIG
> - right trigger to ABS_RTRIG

These are also digital buttons, so what's wrong with BTN_TL/TR?

> - x to BTN_NORTH
> - a to BTN_EAST
> - b to BTN_SOUTH
> - y to BTN_WEST

These make sense to me. At least keyboards also return the American
keycodes instead of trying to guess the label. However, if you want
"help texts" in your applications, like "press A to continue", you
need a user-space helper library, anyway. Otherwise, you cannot be
sure this key is labeled "A" on the current device.
That's also the reason why I don't think these mappings really help.

> - zl to BTN_LSHOULDER
> - zr to BTN_RSHOULDER

Again, why not reuse BTN_ZL/ZR?

> - plus to BTN_START
> - minus to BTN_SELECT
> - home to BTN_SYSTEM

The other Nintendo drivers return BTN_MODE for "home". Could you
explain what's wrong with that?

Thanks!
David
--
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