![]() |
|
This thread is locked; no one can reply to it.
![]() ![]() |
1
2
|
PLEASE FIX: Joystick rotation axis enumeration bug |
Cortex Commander
Member #7,908
October 2006
|
I've just ran into the problem of not being able to read two specific joystick axes (Rotation X and Y) which are used for the right analog stick on the Xbox 360 wired controller/gamepad. They're simply not enumerated by the Allegro 4.2 library. It seems like it's a known bug approached in this thread: Peter Wang's assessment seems correct: "I think the problem is in object_enum_callback() in src/win/wjoydx.c. I suspect the missing axis falls under GUID_RxAxis or GUID_RyAxis which is not being tested for there." Is this going to be fixed? Can someone please follow up on this issue? I don't want to have to switch to SDL input handling... Thanks so much in advance! (Wait, could I make the bugfix myself to the allegro code? Should I start looking for the sourceforce repository?!) - Dan T, working on Cortex Command |
Peter Wang
Member #23
April 2000
|
Quote: (Wait, could I make the bugfix myself to the allegro code? Should I start looking for the sourceforce repository?!) Yes, fix it and send us the patch, either to the [AD] mailing list, here, or on the SF.net bug tracker (as you have found). It's unlikely anyone else will fix it for you as we basically have no Windows developers any more.
|
tobing
Member #5,213
November 2004
![]() |
Quote: as we basically have no Windows developers any more Oh! How come? |
gnolam
Member #2,030
March 2002
![]() |
The problem is that just adding checks for RxAxis and RyAxis doesn't help - the problem still persists. I tried that the last time around. [EDIT] I think I'll try to wrap my head around Allegro's joystick code and see if I can produce a fix for this tonight. [EDIT 2] [EDIT 104] -- |
Neil Walker
Member #210
April 2000
![]() |
Good job gnolam Though it sounds like the current joystick code is a crock of shite Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
gnolam
Member #2,030
March 2002
![]() |
UPDATE: a proper fix will take a while, since trying to extract relevant information from MSDN is like repeatedly smashing a claw hammer into your groin. Quote:
Though it sounds like the current joystick code is a crock of shite Well, it's certainly showing its age anyway... it makes me wonder if there's any chance of introducing an _ex family of joystick functions and structures (with, for example, > 8-bit detail on axis positions, configurable deadzone/range properties, etc). -- |
CGamesPlay
Member #2,559
July 2002
![]() |
I think we should make Allegro hacking a spectator sport. -- Ryan Patterson - <http://cgamesplay.com/> |
gnolam
Member #2,030
March 2002
![]() |
Well, I have some good news and some bad news... In more detail: The solution to both problems would be to actually associate each Allegro axis with a corresponding DirectX axis, but I'm not sure if I'm allowed to touch the internal structures... IMO of course. There might actually be a clean way to do all this, but I'll leave finding it to someone who's not as tired. I will attach patches for testing in a minute or two. [EDIT] [EDIT2] [EDIT3] -- |
Edward Sheets
Member #4,734
June 2004
![]() |
Good job, gnolam. It's always good to see progress being made on the Windows port. --- Note: carving a pentagram on the top of a container of spoiled yogurt does not summon a yogurt demon. -Kikaru |
Richard Phipps
Member #1,632
November 2001
![]() |
Good work Gnolam! |
Peter Wang
Member #23
April 2000
|
Unfortunately we can't bump MAX_JOYSTICK_AXIS and MAX_JOYSTICK_STICKS in the 4.2 branch as it would break ABI compatibility. Is it really necessary?
|
gnolam
Member #2,030
March 2002
![]() |
Yes. STICKS, anyway. Well, that's a load of work for nothing then. -- |
Thomas Fjellstrom
Member #476
June 2000
![]() |
Not nothing, it'll be able to be included in 4.3 at least -- |
Cortex Commander
Member #7,908
October 2006
|
Wow you guys rock! Here I thought I wouldn't get much response for a while... gnolam you rock. Props were due and given: A 4.3 update would be hot. |
Thomas Fjellstrom
Member #476
June 2000
![]() |
4.3 will be a little different than 4.2. some/alot of the api will change, as 4.3 is designated as part of the incremental update to "allegro 5". So you may have to "port" over stuff to 4.3, and aditional updates to 4.3 or 4.4+ will also have significant changes. -- |
CGamesPlay
Member #2,559
July 2002
![]() |
Don't install your modified Allegro binary to the system library directory, please! -- Ryan Patterson - <http://cgamesplay.com/> |
Cortex Commander
Member #7,908
October 2006
|
Seems like i'll have to use SDL for the joystick input after all.. oh well! ;p Thanks for the quick help and effort though! Looking forward to a rewritten input module sometime! |
miran
Member #2,407
June 2002
|
Quote: Seems like i'll have to use SDL for the joystick input after all.. oh well! ;p How did you arrive at this conclusion? Just apply gnolam's patch on your local SVN copy of Allegro and staticlink your game. Problem solved. -- |
gnolam
Member #2,030
March 2002
![]() |
Quote:
Not nothing, it'll be able to be included in 4.3 at least Right. I'll just come back and resubmit it in 5 years then... -- |
Thomas Fjellstrom
Member #476
June 2000
![]() |
Or you could apply it to 4.3 now. -- |
gnolam
Member #2,030
March 2002
![]() |
AFAIK, 4.3 is still a jumble of broken code with no actual API plan, so no. (We've only been waiting for Allegro 4.2.1 for what, a year?) -- |
Thomas Fjellstrom
Member #476
June 2000
![]() |
AFAIK 4.3 compiles just fine. its the old allegro_new branch or whatever that was totally broken. -- |
gnolam
Member #2,030
March 2002
![]() |
Maybe it does. But even if the patch should prove relevant, there's still the utter lack of documentation and planning. So no, I'm not planning on contributing anything to 4.3. -- |
Thomas Fjellstrom
Member #476
June 2000
![]() |
And thats why theres a lack to begin with. "I'm not going to do anything if noone else does!". Actually, I'm nearly done the new file/path handling stuff for allegro 4.3. Including the unix and windows specific code. -- |
gnolam
Member #2,030
March 2002
![]() |
Quote: And thats why theres a lack to begin with. "I'm not going to do anything if noone [sic] else does!".
No, that's not it. Try You don't start building a house without first drawing up detailed plans. Likewise, you don't contribute to a project with no apparent direction unless you get paid for it. -- |
|
1
2
|