View previous topic :: View next topic |
Author |
Message |
Lutger
Joined: 25 May 2006 Posts: 91
|
Posted: Sun May 06, 2007 2:56 pm Post subject: gamepad support? |
|
|
I noticed there is no support for gamepads / joysticks in arc (right?) and didn't find a ticket for it.
If it is wanted and nobody has planned on working on it, shall I implement it and send you a patch? |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
|
Back to top |
|
|
Lutger
Joined: 25 May 2006 Posts: 91
|
Posted: Sun May 06, 2007 5:49 pm Post subject: |
|
|
Ok I'll try to have it done soon, I think I can fit it in this week. I will follow the design of current mouse and keyboard implementation. |
|
Back to top |
|
|
Lutger
Joined: 25 May 2006 Posts: 91
|
Posted: Sun May 13, 2007 10:14 am Post subject: |
|
|
I've made the patch and send it to Clay.
If anybody else wants to take a look, it's here: http://lutger.ifastnet.com/joystick_patch.zip
Included are the original files checked out today with the modified files and diffs. I don't have any experience with making patches, so please tell me if it should be done in a different manner.
I'm not 100% satisfied with the result, but it should work and do anything you would want. (Except for trackballs and hats). Feel free to give critique if you take a look at it. |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Sun May 13, 2007 9:32 pm Post subject: |
|
|
thanks! |
|
Back to top |
|
|
ChristianK
Joined: 26 Sep 2006 Posts: 159 Location: Berlin, Germany
|
Posted: Mon May 14, 2007 1:39 pm Post subject: |
|
|
Thanks from me too!
Clay is currently gone and I'm pretty busy too, but rest assured that we'll look at and integrate your work eventually. Gamepad/Joystick support is too nice a feature to not have it. |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Tue May 22, 2007 11:28 am Post subject: |
|
|
I added the patch without any modifications and did a quick unittest test. Since I do not have any joysticks, the only thing I could test is that it could not find any joysticks
I haven't had time to critique it, but from what I saw it looks like a good job, and only minor changes (if any) would need to be applied in the future. Thanks again!
~ Clay |
|
Back to top |
|
|
Lutger
Joined: 25 May 2006 Posts: 91
|
Posted: Tue May 22, 2007 3:37 pm Post subject: |
|
|
It is my pleasure to contribute |
|
Back to top |
|
|
|