* adding xpad support for PS-PC Smart Joypad
@ 2016-01-15 17:42 Allen M.
2016-01-16 0:43 ` Dmitry Torokhov
0 siblings, 1 reply; 4+ messages in thread
From: Allen M. @ 2016-01-15 17:42 UTC (permalink / raw)
To: linux-input
Hello, I have a Playstation 1 to USB device I'd like to request to be added
as an xpad supported device. verbose lsusb output for the device can be
found here: http://ix.io/nq3
The device currently works fine as a generic joystick. However, it needs
the MAP_DPAD_AS_BUTTONS option in order for it to be used with a dance pad.
Let me know if I need to do anything further or if I need to provide more
info for the device.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: adding xpad support for PS-PC Smart Joypad
2016-01-15 17:42 adding xpad support for PS-PC Smart Joypad Allen M.
@ 2016-01-16 0:43 ` Dmitry Torokhov
2016-01-16 2:18 ` Allen M.
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2016-01-16 0:43 UTC (permalink / raw)
To: Allen M.; +Cc: linux-input@vger.kernel.org
Hi Allen,
On Fri, Jan 15, 2016 at 9:42 AM, Allen M. <ase1592@gmail.com> wrote:
> Hello, I have a Playstation 1 to USB device I'd like to request to be added
> as an xpad supported device. verbose lsusb output for the device can be
> found here: http://ix.io/nq3
>
> The device currently works fine as a generic joystick. However, it needs
> the MAP_DPAD_AS_BUTTONS option in order for it to be used with a dance pad.
> Let me know if I need to do anything further or if I need to provide more
> info for the device.
This looks like a generic HID device, not Xbox device, so xpad driver
would be wrong one to add it to. Can you have UDEV rule to remap
buttons form userspace when the device is discovered, similarly to
what we do for keyboards?
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: adding xpad support for PS-PC Smart Joypad
2016-01-16 0:43 ` Dmitry Torokhov
@ 2016-01-16 2:18 ` Allen M.
2016-01-16 18:34 ` Dmitry Torokhov
0 siblings, 1 reply; 4+ messages in thread
From: Allen M. @ 2016-01-16 2:18 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-input
On Fri, Jan 15, 2016 at 6:43 PM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
> Hi Allen,
>
> On Fri, Jan 15, 2016 at 9:42 AM, Allen M. <ase1592@gmail.com> wrote:
>> Hello, I have a Playstation 1 to USB device I'd like to request to be added
>> as an xpad supported device. verbose lsusb output for the device can be
>> found here: http://ix.io/nq3
>>
>> The device currently works fine as a generic joystick. However, it needs
>> the MAP_DPAD_AS_BUTTONS option in order for it to be used with a dance pad.
>> Let me know if I need to do anything further or if I need to provide more
>> info for the device.
>
> This looks like a generic HID device, not Xbox device, so xpad driver
> would be wrong one to add it to. Can you have UDEV rule to remap
> buttons form userspace when the device is discovered, similarly to
> what we do for keyboards?
>
> Thanks.
>
> --
> Dmitry
Can UDEV remap a joystick axis to buttons? I wasn't aware it had that
ability. Currently I cannot simultaneously hit the left and right buttons
on the dance pad, as that simply does not work for an axis-mapped device.
I'll look into how keyboards are handled though, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: adding xpad support for PS-PC Smart Joypad
2016-01-16 2:18 ` Allen M.
@ 2016-01-16 18:34 ` Dmitry Torokhov
0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2016-01-16 18:34 UTC (permalink / raw)
To: Allen M.; +Cc: linux-input
On Fri, Jan 15, 2016 at 08:18:03PM -0600, Allen M. wrote:
> On Fri, Jan 15, 2016 at 6:43 PM, Dmitry Torokhov
> <dmitry.torokhov@gmail.com> wrote:
> > Hi Allen,
> >
> > On Fri, Jan 15, 2016 at 9:42 AM, Allen M. <ase1592@gmail.com> wrote:
> >> Hello, I have a Playstation 1 to USB device I'd like to request to be added
> >> as an xpad supported device. verbose lsusb output for the device can be
> >> found here: http://ix.io/nq3
> >>
> >> The device currently works fine as a generic joystick. However, it needs
> >> the MAP_DPAD_AS_BUTTONS option in order for it to be used with a dance pad.
> >> Let me know if I need to do anything further or if I need to provide more
> >> info for the device.
> >
> > This looks like a generic HID device, not Xbox device, so xpad driver
> > would be wrong one to add it to. Can you have UDEV rule to remap
> > buttons form userspace when the device is discovered, similarly to
> > what we do for keyboards?
> >
> > Thanks.
> >
> > --
> > Dmitry
>
> Can UDEV remap a joystick axis to buttons? I wasn't aware it had that
> ability. Currently I cannot simultaneously hit the left and right buttons
> on the dance pad, as that simply does not work for an axis-mapped device.
Hmm, you are right, we can only remap keys or not-yep mapped usages, not
usages that are represented as relative or absolute axis. So it really
depends how your device presents itself to HID.
If udev keymap load does not work you will need to create a tiny HID
driver that overrides mapping in kernel.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-16 18:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15 17:42 adding xpad support for PS-PC Smart Joypad Allen M.
2016-01-16 0:43 ` Dmitry Torokhov
2016-01-16 2:18 ` Allen M.
2016-01-16 18:34 ` Dmitry Torokhov
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).