Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Gamers & Players
  • Search

Xbox dancemat (xpad) and pydance!

Having problems getting your favorite Linux game to work? Want to discuss strategies? This is the place!
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
Author
Message
febs
n00b
n00b
User avatar
Posts: 43
Joined: Sun Jan 18, 2004 2:44 pm

Xbox dancemat (xpad) and pydance!

  • Quote

Post by febs » Mon Jun 28, 2004 6:34 am

Hi all. I have a dancepad for xbox that is very nice (www.dancemat.com). I'd like to use it with the PC, too, since it's not difficult to adapt the cable, shaping it's end in a normal USB jack.
I already did that with the regular xbox controller, but there is still no way to make it work with Linux, and so I don't want to mess with the dancemat until the regular joypad don't work.
BTW, the cable is good, since if i plug it into a USB-to-XBOX adaptor I made, it works great with the xbox itself.
The joypad is recognized by pydance (1 controller found!) but it does not work in game (the directional pad does nothing!).
Have someone seen and solved this?
Thank you very much you all

Febs
Top
Bot24
n00b
n00b
Posts: 27
Joined: Mon Jun 28, 2004 8:39 am
Contact:
Contact Bot24
Website

  • Quote

Post by Bot24 » Mon Jun 28, 2004 8:42 am

You might need to mess with the bindings first. I setup a modified xpad driver so that the axis reports as buttons(you need this) and then had to set the bindings in StepMania before it would work.
Top
febs
n00b
n00b
User avatar
Posts: 43
Joined: Sun Jan 18, 2004 2:44 pm

  • Quote

Post by febs » Mon Jun 28, 2004 8:51 am

Thanx for your reply, too bad I'm quite lost :(
How can I set up the modified driver? Have you perhaps a patch or a link for that? Thank you!
Top
Bot24
n00b
n00b
Posts: 27
Joined: Mon Jun 28, 2004 8:39 am
Contact:
Contact Bot24
Website

  • Quote

Post by Bot24 » Mon Jun 28, 2004 9:11 am

It might be in there by now, but what I did was I copied a part of the axis code over some buttons. xpad's page say's that it is dead, and that is bad because I sent them a patch that should fix this. I don't have it anymore.
I would wory about getting something to happen before trying to mess with the driver.
Top
febs
n00b
n00b
User avatar
Posts: 43
Joined: Sun Jan 18, 2004 2:44 pm

  • Quote

Post by febs » Mon Jun 28, 2004 9:17 am

Well, I'm using the 2.6.6 kernel that has the xpad driver built-in.
The buttons work (well, they get recognized by pydance) but the d-pad seems dead, so I cannot play. I was just taking a look at xpad.c but I'm not skilled enough to try to fix it. I will try more and more :)
Thank you very much!
Top
febs
n00b
n00b
User avatar
Posts: 43
Joined: Sun Jan 18, 2004 2:44 pm

  • Quote

Post by febs » Mon Jun 28, 2004 10:58 am

oh, my, I'm lost.
I cannot find any way to have it working. Any help sincerely appreciated. :)

Big thanx!
Top
febs
n00b
n00b
User avatar
Posts: 43
Joined: Sun Jan 18, 2004 2:44 pm

  • Quote

Post by febs » Mon Aug 09, 2004 9:00 am

:oops: bump.
Does anybody has some hint about doing this? Thank you very much.
Top
Bot24
n00b
n00b
Posts: 27
Joined: Mon Jun 28, 2004 8:39 am
Contact:
Contact Bot24
Website

  • Quote

Post by Bot24 » Mon Aug 09, 2004 9:19 am

try changing

Code: Select all

/* digital pad */
	input_report_abs(dev, ABS_HAT0X, !!(data[2] & 0x08) - !!(data[2] & 0x04));
	input_report_abs(dev, ABS_HAT0Y, !!(data[2] & 0x02) - !!(data[2] & 0x01));
to

Code: Select all

/* digital pad */
	input_report_key(dev, BTN_THUMBL, (data[2] & 0x08) >> 3);
	input_report_key(dev, BTN_THUMBR, (data[2] & 0x04) >> 2);
	input_report_key(dev, BTN_C, (data[2] & 0x02) >> 1);
	input_report_key(dev, BTN_Z, (data[2] & 0x01));
That should work, but I might have some of the numbers out of order. As long as all the keys register it won't matter what the names are.
Top
febs
n00b
n00b
User avatar
Posts: 43
Joined: Sun Jan 18, 2004 2:44 pm

  • Quote

Post by febs » Mon Aug 09, 2004 9:31 pm

Thank you very much for your reply: I finally had the chance to try it out. Too bad something is gone wrong in my system, 'cause when your trick failed to do the job, I restored the original sources, just to find that what worked *before* (last time I tried, some month ago) stopped working now.
So, before of it all, I have to find out what the hell is happened.
I will let you know when I'll find a way out. Thank you very much again pal.
Top
febs
n00b
n00b
User avatar
Posts: 43
Joined: Sun Jan 18, 2004 2:44 pm

  • Quote

Post by febs » Mon Aug 09, 2004 9:48 pm

What a stupid fault if was! If Works great now! It's beautiful!
I noticed a thing while testing: joypad and dancemat give different codes to pydance while pressed. This is not an issue in anyway, since I just tune it with the dancemat codes.
I wrote just in case it can be of some interest to you.

T.y. once again.
Top
Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “Gamers & Players”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic