30 October 2015, 06:31 | #1 |
Code Kitten
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
|
New Saturn to USB adapter config + issues.
Hei Frode,
I recently tested fs-uae launcher 2.6.2 on Mac OS X with a Saturn Controller to USB adapter from Raphnet with the analog MK 80-117 controller (both with this controller's analog and digital modes) and a Psychopad KO from Act Labs. Buttons mappings were acquired using the simple but effective Joystick Show app. I have attached the config file for the adapter created by fs-uae and modified by me in case you want to include it with future versions. Note however that:
All in all, I am not too sure how I should handle the fact that the same USB controller will produce different signals depending on which type of controller is plugged (this type being modify-able live in the case of the MK 80-117) while still giving the same number of axis and buttons and returning the same ID. In theory the adapter should be able to relay the type of controller plugged since the Saturn controller protocol supports it but in practice it does not (*), so one is faced with the desire of having two different configurations for the same USB adapter generating different events: since dpad events are generated by different signals depending on the mode they cannot be present in the same config file, alas only one config file can be used for the adapter. I do not exclude however that I completely missed a current perfectly valid way to do it though so I would definitely appreciate some advice. Also, I initially tried to define the [amiga] and [menu] sections straight into the controller configuration without including the "universal" config via an include statement but this did not work at all. Is there some documentation which explains exactly the inter-relation between .conf and .ini? The input mapping page on the the web site is not too clear about it and I have been successfully resisting the temptation to dig into the source code so far. Also, I have noticed (cf universal_saturn.ini) that regardless of what action I map to the "start_button" it always does invoke the FS-UAE menu. It looks like the "menu_alt" event is hardcoded on that button. Is this by design? Thanks in advance for your time and keep up the great job! (*) I plan to mail RaphNet to ask him whether this could be changed. From what I understand he is receptive to suggestions. Last edited by ReadOnlyCat; 30 October 2015 at 06:37. Reason: Rephrased more clearly. |
01 November 2015, 21:23 | #2 |
Code Kitten
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
|
Just bumping this thread gently in case you did miss it Frode.
|
09 November 2015, 01:40 | #3 |
Code Kitten
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
|
Frode, I understand that you have a lot on your plate and thus possibly no time to answer/address the points listed in my original post and I certainly do not want to be the annoying guy who bumps a post every week, so could you indicate if there is any chance of you looking at the OP?
It's all fine if you cannot or do not want but knowing whether it might be looked into at some point or never would be helpful to me. "no time" or "dream on" would be equally fine as long as I know. Thanks. |
09 November 2015, 16:58 | #4 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Hi, it's basically a case of being quite busy for the last week, and tired in the evenings
(A few more days may also pass before I have time to look into this and reply) |
10 November 2015, 01:58 | #5 | |
Code Kitten
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
|
Quote:
Thanks a lot for your answer, I will wait patiently and silently then. |
|
02 December 2015, 23:01 | #6 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Hi, I've started looking over the configs, and here's the initial comments. There are several "issues" to figure out here, and I'm not addressing all of them in this post.
I suggest going with this: Code:
axis_0_neg = lstick_left axis_0_pos = lstick_right axis_1_neg = lstick_up axis_1_pos = lstick_down button_10 = dpad_right button_11 = dpad_left button_12 = dpad_down button_13 = dpad_up button_6 = left_shoulder button_7 = right_shoulder ... The fact that "lstick_left" is usually analogue isn't a problem here. When a digital joystick uses axis 0/1, FS-UAE will still handle it perfectly well. And as for emulation, FS-UAE automatically assigns both the dpad and the lstick to Amiga joystick movement (at least the standard universal config does this). With saturn.ini, you'd just do the same: Code:
dpad_left = left dpad_right = right dpad_up = up dpad_down = down ... lstick_left = left lstick_right = right lstick_up = up lstick_down = down ... Code:
[amiga] axis_0_pos = left button_1 = 1 Code:
button_1 -> 1 Code:
button_1 -> south_button -> 1 So to answer your question about what's the difference between the .ini and .conf files - there isn't really any (and the different extensions are just due to some historical reasons). The system just allows to to have a [default] section which includes another config file if [whatever] (e.g. [amiga]) is not found, and look for [whatever] in the new file, optionally already having translated the input names to something else. In the end, it still might be both easier and better to just map the buttons/axes to "appropriate" universal actions using the FS-UAE Launcher GUI, even though the system is quite flexible, and it's possible to do it your way (if some issues with saturn.ini is fixed). Last edited by FrodeSolheim; 02 December 2015 at 23:07. |
04 December 2015, 05:24 | #7 | |||||
Code Kitten
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
|
Thanks a lot for this very detailed answer Frode! This does make the system much clearer for me now.
Quote:
I did not want to map the analog axis (in analog mode) to digital input events because (as is visible in saturn.ini) I wanted to create real analog input events so I could read analog joystick values from my Amiga program but this is not really a priority at the moment. (This said, I kind of recalled having read that FS-UAE currently does not support analog joystick input events, is this the case?) Quote:
My error probably lies in interpreting the virtual_name = input_evensyntax as an assignation when it is actually a mapping: virtual_name ->generates-> input_even. But I recall FS-UAE generating an error for duplicate definition when the two lines below were present in the device config's [default]: Code:
axis_0_neg = dpad_left button10 = dpad_left Quote:
Quote:
Quote:
However, having to use the cardinal-points virtual names and the xbox/playstation image to configure a pad which is very different feels wrong and is completely unclear since the image and available virtual names do not match the actual pad at all. How hard would it be to modify the code to allow users to provide a custom image with annotations so that non-standard controllers can still be configured visually? Something like that would be nice: Code:
-- saturn_adapter_______.conf [sdl] ... [default] include = universal button_0 = megadrive_x ... [visual] image = "saturn MK 80-117.png" megadrive_x = line x1, y1, x2, y2, x3, y3, text x4, y5 megadrive_y = line x5, y5, x6, y6, text x7, y7 |
|||||
21 June 2016, 04:03 | #8 |
Code Kitten
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
|
Hey Frode, any chance that you will have some time to reply to my last post?
No worries if you do not have time, I can wait a bit more. Cheers! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New USB HID mouse / USB Joystick / Gamepad USB adapter for the classic Amiga | spidi | News | 191 | 21 February 2021 19:18 |
FS UAE and Launcher Config Issues | Girgl | support.FS-UAE | 1 | 03 January 2015 00:07 |
What is minimum config to boot with rapidroad usb enabled? | dirkies | support.Hardware | 10 | 26 December 2014 11:03 |
Couple issues with E-UAE ( screen size and config related) | kursad | support.OtherUAE | 3 | 11 December 2009 20:53 |
Saitek Cyborg USB stick config grief. | Neutrino | support.WinUAE | 7 | 29 March 2009 19:44 |
|
|