Previous Thread
Next Thread
Print Thread
Page 2 of 3 1 2 3
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
That's something the SDL OSD already does... see src/osd/sdl/input.c, line 1260 ff!!

But it does that on specific axes only (axis 12 and axis 13). Perhaps that's what confuses you?!


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Mar 2007
Posts: 28
R
Member
OP Offline
Member
R
Joined: Mar 2007
Posts: 28
Originally Posted By AaronGiles
Yes, absolute analog axes are assumed to be centered at 0. It is the OSD's job to ensure that things are calibrated that way.


That's not the behavior I'm seeing in outrun. After fixing the overflow (src/osd/sdl/input.c, line 71, change 8 to 28), OutRun is very playable on a DualShock 3 with -nosixaxis and the pedals mapped analog to pressure sensitive buttons (I recommend L2 and R2). Its input test screen gives exactly the desired values too (00 up, FF down).

-E- Crus'n World (crusnwld) and Ridge Racer (ridgerac) behave in exactly the same way. Are you sure pedals are not an exception or similar?

On a related note, I found another issue. I can't map the button axes through MAME's menus, but if I manually edit ~/.mame/cfg/*.cfg, they work fine.

Last edited by roothorick; 12/29/08 11:56 AM.
Joined: Mar 2001
Posts: 16,923
Likes: 57
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,923
Likes: 57
I've improved the -sixaxis handling for 0.129 so now it "sanitizes" all the non-stick axes instead of just 12 and 13 (and fixed the max axes in the OSD layer to 32). The inability to map axes > 4 or so in the UI seems to be a baseline thing. Aaron?

Joined: Mar 2007
Posts: 28
R
Member
OP Offline
Member
R
Joined: Mar 2007
Posts: 28
So the outrun and crusnwld and ridgerac drivers are bugged in their pedal handling? What games aren't bugged then?

Joined: Mar 2001
Posts: 16,923
Likes: 57
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,923
Likes: 57
They're not bugged. You're just getting suboptimal results right now and assuming it's perfection. Happens a lot with emulation.

Joined: Feb 2007
Posts: 549
S
Senior Member
Offline
Senior Member
S
Joined: Feb 2007
Posts: 549
Here's (presumably) a way to get the sixaxis working on OSX.

Source code and binary:
http://netkas.org/?p=76

I haven't tried it myself, I don't own a sixaxis.

Joined: Mar 2007
Posts: 28
R
Member
OP Offline
Member
R
Joined: Mar 2007
Posts: 28
Originally Posted By R. Belmont
They're not bugged. You're just getting suboptimal results right now and assuming it's perfection. Happens a lot with emulation.


With the sixaxis "fix", the pedal axes start at 0, then jump to almost exactly halfway (7F in outrun) with any axis activity, then moving between halfway and max. Unless I start the game holding down each pedal button, the game calibrates for 0-max, meaning the brake is always at least halfway on, and your car doesn't go anywhere. This strongly suggests to me the "fix" is wrong and resting at -32767 is expected for pedal axes.

I probably should have mentioned all this right off the bat.

Last edited by roothorick; 01/04/09 03:49 AM.
Joined: Mar 2001
Posts: 16,923
Likes: 57
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,923
Likes: 57
Well, I'm doing what Aaron tells me the OS Dependent layer should do. It's up to you to convince him he's wrong :-)

Last edited by R. Belmont; 01/04/09 04:43 AM.
Joined: Mar 2007
Posts: 28
R
Member
OP Offline
Member
R
Joined: Mar 2007
Posts: 28
Or I could just not use the sixaxis option.

Joined: Mar 2001
Posts: 16,923
Likes: 57
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,923
Likes: 57
I could make it mandatory if the controller name matches. Anyway, the adjustment is different in my code from what's in yours, so you're not actually seeing how 0.129 will behave.

Page 2 of 3 1 2 3

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
2 members (R. Belmont, box), 14 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,102
Posts119,263
Members5,019
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com