Re: Logic3 USB Dance Mat

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

 



I'm not sure if I have as it's mostly been guesswork from code with
minimal comments.

Is this line doing that?

input_register_device(l3usbmat->dev);

Thanks for your help.

Cheers,

Alan.

On 7/29/06, Greg KH <greg@xxxxxxxxx> wrote:
On Tue, Jul 25, 2006 at 07:48:34PM +0100, Alan Jones wrote:
> Hi All,
>
> I've attempted to write a driver for the logic3 usb dance mat.
>
> It "works" without a driver, but appears as a keyboard (though no
> event node - at least with the setup I've got). And the directions
> function as
> Q        Up       E
> Left     S  Right
> Z      Down    C
>
> As well as an enter and escape up the top - predictably mapped.
>
> So my attempt was to fuse the xpad driver with the usbhid driver to
> form some freakish combination where I could remap those keys to
> buttons. The attempt lies here http://www.binaryiris.com/l3usbmat.c
>
> The first problem I had was that the mat was still recognized as a
> keyboard - so I added it's details to hid-core.c in the blacklist to
> prevent it from using the usbhid driver. However while that stopped it
> and my module loads ok - it doesn't create any dev nodes and I'm
> completely out of ideas.

You need to register with the input subsystem, probably as a joystick
device in order for this to be exposed to userspace properly.

Have you tried that?

thanks,

greg k-h


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux