04 January 2023, 22:42 | #1 |
Registered User
Join Date: Jan 2023
Location: USA
Posts: 2
|
DualShock4 on MacOS
Hello, all. This is my first post, and I hope it isn't something really obvious. But I've spent the last few days searching these forums and the web at large for info, reading the documentation, and trying tons of things, and I just can't seem to make this work. I apologize for the length, I'm just trying to be thorough.
Here's the problem: I've got a DualShock4 controller hooked up my Mac via Bluetooth. I'm running Ventura, and it sees the controller just fine. I have FS-UAE launcher running FS-UAE, the latest 3.x versions as of the first of the year. There is a game that I used to love playing on the Amiga called "Llamatron". It is the same concept as Robotron, and it supports using two joysticks -- one to move, and one to aim. What I would like to do is have the DualShock4 let me use the two thumb sticks as two joysticks. But try as I might, I can't seem to make that happen. I can set the DS4 as one joystick and then set the second joystick to keyboard emulation, and that works -- the game sees the second "joystick" and I can use the arrow keys to aim. It's playable, but using the second stick would be much better. I can go into the joystick configuration and see that the right stick is axis_2 and axis_3 (the left joystick is axis_0 and axis_1 and it works just fine). But I've tried every kind of input mapping I can find, and none of them work. I've tried putting the input mappings in the game config file, and I've tried putting them in the controller config file. I've tried mappings similar to all of the following (not all at the same time, this is just a list): ps4_controller_16_6_0_0_macos_rstick_left = action_joy_1_left rstick_left = action_joy_1_left ps4_controller_16_6_0_0_macos_axis_2_neg = action_joy_1_left axis_2_neg = action_joy_1_left controller_axis_2_neg = action_joy_1_left I've tried other joystick numbers, but none work. I've tried mapping to action_joy_1_whatever and that doesn't work. I've tried mapping to the keys that the keyboard "joystick" uses (action_key_cursor_left), but that doesn't work either. So my questions are these: Is there a known configuration out there somewhere for what I'm trying to do? (It seems like it would be a fairly common scenario?) If not, which file should the input mappings be included in? What are the recommended mappings to make this happen? See above for the ones I've tried that didn't work. If it helps, here are some relevant sections of the log file: [INPUT] fs_ml_input_init [INPUT] fs_ml_mouse_init [INPUT] Adding system mouse [INPUT] Joystick device count: 1 [INPUT] SDL_JoystickGetDeviceGUID(0) = 030000004c050000cc09000000016800 [INPUT] SDL_JoystickOpen(0) [INPUT] Joystick device #01 found: PS4 CONTROLLER [INPUT] 16 buttons 0 hats 6 axes 0 balls [INPUT] Joystick instance ID = 0 [INPUT] Initialize ... [INPUT] Config name "PS4 CONTROLLER" get system config for device: PS4 CONTROLLER checked data "input/PS4 CONTROLLER.conf" = 3 config file for PS4 CONTROLLER was not found [INPUT] Did not find config for device "PS4 CONTROLLER" get system config for device: ps4_controller_16_6_0_0_macos read config for ps4_controller_16_6_0_0_macos for menu (from /(home_folder)/FS-UAE/Controllers/ps4_controller_16_6_0_0_macos.conf) checked data "input/universal_gamepad.conf" = 0 read config for universal_gamepad for menu (from data) did not find action for "tertiary" did not find action for "skip_right" did not find action for "rstick_right" did not find action for "universal_gamepad" did not find action for "rstick_button" axis_1_neg (8707) => action "up" (3) did not find action for "secondary" axis_0_pos (8706) => action "right" (2) did not find action for "right_trigger" did not find action for "lstick_button" button_14 (9103) => action "right" (2) button_1 (9090) => action "back" (6) did not find action for "rstick_down" button_6 (9095) => action "start" (8) button_13 (9102) => action "left" (1) did not find action for "rstick_left" button_0 (9089) => action "primary" (5) button_5 (9094) => action "menu" (7) button_12 (9101) => action "down" (4) axis_1_pos (8708) => action "down" (4) axis_0_neg (8705) => action "left" (1) button_4 (9093) => action "select" (9) button_11 (9100) => action "up" (3) did not find action for "left_trigger" did not find action for "rstick_up" did not find action for "skip_left" ... configuring joystick ports: set option "joyport0" to "none" (result: 1) set option "joyport1" to "none" (result: 1) fs_uae_configure_actions fs_uae_read_override_actions_for_port 0 fs_uae_read_override_actions_for_port 1 fs_uae_read_override_actions_for_port 2 fs_uae_read_override_actions_for_port 3 fs_uae_read_override_actions_for_port 4 fs_uae_read_override_actions_for_port 5 fs_uae_read_override_actions_for_port 6 fs_uae_read_override_actions_for_port 7 configuring joystick port 1 (PS4 Controller) configure joystick "PS4 Controller" for "amiga" (port index 1 did not match device #0 (Keyboard) did not match device #1 (MOUSE) matched device #2 config name "030000004c050000cc09000000016800" get system config for device: 030000004c050000cc09000000016800 read config for 030000004c050000cc09000000016800 for amiga (from /(home_folder)/FS-UAE/Controllers/030000004c050000cc09000000016800.fs-uae-controller) checked data "input/universal_gamepad.conf" = 0 read config for universal_gamepad for amiga (from data) did not find action for "universal_gamepad" did not find action for "rstick_down" axis_0_pos (8706) => action "right" (61) button_13 (9102) => action "left" (60) did not find action for "lstick_button" button_10 (9099) => action "up" (62) did not find action for "rstick_up" axis_0_neg (8705) => action "left" (60) button_1 (9090) => action "up" (62) axis_4_pos (8714) => action "toggle_autofire" (476) button_4 (9093) => action "pause" (49156) axis_1_pos (8708) => action "down" (63) button_9 (9098) => action "down" (63) button_12 (9101) => action "down" (63) button_6 (9095) => action "menu_alt" (49155) button_3 (9092) => action "1" (68) axis_1_neg (8707) => action "up" (62) button_0 (9089) => action "1" (68) axis_5_pos (8716) => action "autofire" (336) did not find action for "rstick_right" button_14 (9103) => action "right" (61) did not find action for "menu_button" did not find action for "rstick_button" button_11 (9100) => action "up" (62) did not find action for "rstick_left" button_2 (9091) => action "2" (69) For what it's worth, in every mapping I've tried, it has always said "did not find action for rstick_whatever". |
05 January 2023, 01:03 | #2 |
Registered User
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
|
You probably want something like this:
Code:
ps4_controller_axis_0_pos = action_joy_0_right ps4_controller_axis_0_neg = action_joy_0_left ps4_controller_axis_1_pos = action_joy_0_down ps4_controller_axis_1_neg = action_joy_0_up ps4_controller_axis_2_pos = action_joy_1_right ps4_controller_axis_2_neg = action_joy_1_left ps4_controller_axis_3_pos = action_joy_1_down ps4_controller_axis_3_neg = action_joy_1_up |
05 January 2023, 13:06 | #3 |
Registered User
Join Date: Jan 2023
Location: USA
Posts: 2
|
Thank you!! That was pretty close, just the stick numbers were different.
For anyone else who searches and finds this, here is the complete config file that works for dual joystick configuration for PS4 Dualshock controller. (This is with the FS-UAE Launcher showing two joysticks - PS4 Controller in the first port, and OSX Keyboard in the second port.) # FS-UAE configuration saved by FS-UAE Launcher # Last saved: 2023-01-04 05:33:22 [fs-uae] floppy_drive_0 = $HOME/Amiga/Games/llamatron.adf joystick_port_0_mode = joystick joystick_port_2_mode = joystick joystick_port_3 = Mouse #joy1 is the left joystick ps4_controller_axis_0_pos = action_joy_1_right ps4_controller_axis_0_neg = action_joy_1_left ps4_controller_axis_1_pos = action_joy_1_down ps4_controller_axis_1_neg = action_joy_1_up #joy0 is the right joystick ps4_controller_axis_2_pos = action_joy_0_right ps4_controller_axis_2_neg = action_joy_0_left ps4_controller_axis_3_pos = action_joy_0_down ps4_controller_axis_3_neg = action_joy_0_up ps4_controller_axis_4_pos = action_joy_1_fire_button ps4_controller_axis_5_pos = action_joy_0_fire-button |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ADFMaster for MacOS | Alpha One | News | 32 | 11 September 2022 17:50 |
macOS Mojave | chunky_tesco | support.FS-UAE | 5 | 18 June 2018 12:47 |
Can you use a DualShock4 with FS-UAE? | mrvp | support.FS-UAE | 5 | 16 January 2016 11:38 |
MacOS X 10.8 F12? | dJOS | support.FS-UAE | 7 | 18 February 2013 11:04 |
MacOS 8.0 | motorollin | support.Apps | 7 | 11 May 2006 23:56 |
|
|