Joystick woes

Talk about everything but Kick Off.

Moderators: Moderators, Moderators

User avatar
Danny D
4000+ Poster!
4000+ Poster!
Posts: 4775
Joined: Mon Jun 11, 2001 12:00 am
Contact:

Joystick woes

Postby Danny D » Sat Jan 03, 2015 1:02 am

I've got a competition pro plugged into a MacBook Air via a retrolink usb adapter. This combo works fine under Windows but doesn't with fs-UAE. I want to confirm that Mac Os X see the joystick correctly before degbugging the fs-UAE settings.

This is the usb info:
ATARI Controller USB:

Product ID: 0x4154
Vendor ID: 0x1292 (Fire International Ltd.)
Version: 1.00
Speed: Up to 1.5 Mb/sec
Manufacturer: INNEX
Location ID: 0x14200000 / 13
Current Available (mA): 500
Current Required (mA): 300

Here is a video of the joystick

The video shows
LEFT
RIGHT
UP
DOWN
FIRE

I'm concerned about up and down as left right and fire all look correct. Are up and down on axis 2? Does the above look correct? Maybe a game developer (Steve) might know this?
Thanks.
"We are now on the threshold of a newer movement, with a newer hope and a new inspiration."
James Larkin
User avatar
Steve Camber
Mad! 7000+ poster!
Mad! 7000+ poster!
Posts: 7807
Joined: Sat Jun 16, 2001 12:00 am
Location: Sheffield, England
Contact:

Re: Joystick woes

Postby Steve Camber » Sat Jan 03, 2015 10:15 am

Well at least it looks like there is something there to go on, every action has a reaction.
I'd guess the quickest solution is probably to dive into fs-UAE and get it to correctly interpret the data that OSX is throwing at it.
Or just dump the mac ;)
--
SteveC - Kick Off engineer
18 Dec 2003 - "One day I'm going to disassemble the 68000 code, and find out exactly what's going on in there!! "

Ask me about online KO2 :) https://kickoff2.net
User avatar
Danny D
4000+ Poster!
4000+ Poster!
Posts: 4775
Joined: Mon Jun 11, 2001 12:00 am
Contact:

Re: Joystick woes

Postby Danny D » Sat Jan 03, 2015 12:33 pm

Steve Camber wrote:Well at least it looks like there is something there to go on, every action has a reaction.
I'd guess the quickest solution is probably to dive into fs-UAE and get it to correctly interpret the data that OSX is throwing at it.
Or just dump the mac ;)

Thanks for the reply and NO , dumping the Mac isn't an option!

I tried OpenEmu and the joystick configuration there is a beautiful wizard and it works!!! So therefore the Mac hid driver works so this leaves fs-UAE as the culprit! I'll give it 1 hour tonight and it better be working !
"We are now on the threshold of a newer movement, with a newer hope and a new inspiration."
James Larkin
User avatar
Danny D
4000+ Poster!
4000+ Poster!
Posts: 4775
Joined: Mon Jun 11, 2001 12:00 am
Contact:

Re: Joystick woes

Postby Danny D » Sun Jan 04, 2015 8:05 pm

All fixed I'm glad to report. The answer was staring me in the eyes.In the video above up and down are reported as axis 2. All the fs-uae configuration ini files assume axis 1 is up/down.

Below is the a config file that I modified and it works

atari_controller_usb_2_4_0_0_macosx.conf

# ATARI Controller USB

[device]
name = ATARI Controller USB
type = unspecified

[default]
axis_0_neg = left
axis_0_pos = right
axis_2_neg = up
axis_2_pos = down
button_0 = 1
button_1 = 1
button_2 = 1
"We are now on the threshold of a newer movement, with a newer hope and a new inspiration."
James Larkin
Freshmaker
Moderator
Moderator
Posts: 12557
Joined: Sat Apr 06, 2002 12:00 am
Location: Tromsø,Norway
Contact:

Re: Joystick woes

Postby Freshmaker » Sun Jan 04, 2015 8:17 pm

Great work Danny. I'm sure there are other Mac-useres who'd need this knowledge.
-----------------------------
Silver Cup 2019, LAA 2015, reigning Scandinavian Champ
Founder of FÖKOF, FAKO and The People's Lockout!
WC-Host 2014 and 2017
Il portiere è mongoloide!
http://www.yearnlydom.rocks
I'm a Norwegian boy, I make rock music
User avatar
Danny D
4000+ Poster!
4000+ Poster!
Posts: 4775
Joined: Mon Jun 11, 2001 12:00 am
Contact:

Re: Joystick woes

Postby Danny D » Tue Oct 20, 2015 12:09 pm

Cheers, Freshy.

Came across this again on a newly formatted mac

What one needs to do is create a file which references the device.The name of the ini file is the system name of the controller, converted to lowercase, with an underscore between each word. In my case fs-uae recognises the controller as ATARI Controller USB so my filename is
atari_controller_usb.conf
and located in /Users/XXXXX/Documents/FS-UAe/Controllers/

ref : http://fs-uae.net/custom-controller-configuration
"We are now on the threshold of a newer movement, with a newer hope and a new inspiration."
James Larkin

Who is online

Users browsing this forum: No registered users and 2 guests