Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[NEED HELP] Dualsense 5 Gamepad with MacOS

#1
Hello. I have some problems with gamepad on MacOS.

My setup:
Gamepad: Sony Dualsense 5 (IC:4098-CF****1A)
OS: MacOS Ventura v13.4.1
Computer: MacBook Air M2 2022 (the apple silicon one)
Game: Xonotic v0.8.6 installed with homebrew v4.1.3 package manager

Problems:
Problems are the same on gamepad connected wired or Bluetooth.
Problems are described with game default control bindings and "Use joystick input" option enabled.
Problems are the same over multiplayer and local game.
* If I enter the game, the camera moves up immediately. If I use right analog to move the camera, but the analog only works left-right changing the X axis of the camera (aka. spinning, rotating the camera). The Y-axis is changed with the L2 for some reason - if I press it the cameras Y changes. I think this is because the L2 axis is -1 when I don't press it and the camera moves up constantly. If I hold L2 in the middle, cameras Y stop changing. So, the right thumbstick X is on right thumbstick, its Y is on the L2 axis. If I enter the settings and try to map right thumbstick to something with "Change key..." key, when I move right thumbstick, settings don't respond to it, but on the background in game my personage is spinning.
* If I try to map D-Pad to anything in settings, its wont map, settings wont respond to it.
* If I disconnect the gamepad while in game, it crashes and I get "Xonotic-SDL quit unexpectedly. Click Report to see more detailed information and send a report to Apple.".

Dualsense 5 facts:
The L2 and R2 are the one-way axes instead of buttons. It often used as buttons in games.
It has (button name -> game settings name)
* Thumbsticks (analog): Left stick -> JOY_LEFT,JOY_RIGHT,JOY_UP,JOY_DOWN; Right stick -> does not respond
* Action buttons: Cross -> JOY2; Circle -> JOY3; Square -> JOY1; Triangle -> JOY4;
* Directional buttons: Up -> does not respond; Down -> does not respond; Left -> does not respond; Right -> does not respond;
* Bumpers: L1 -> JOY5; R1 -> JOY6;
* Triggers (pressure-sensitive): L2 -> JOY7; R2 -> JOY8;
* Thumbstick buttons: L3 -> JOY11; R3 -> JOY12;
* Create button -> JOY9;
* Options button -> JOY10
* PS button -> JOY13;
* Mute button -> does no respond;
* Touch pad button (click) -> JOY14
* Touch pad multitouch (touchpoints) -> does not respond (or I am dumb and could not figure out how to use it it this game);

Also I am attaching an link to google drive video with problems showcase.
https://drive.google.com/drive/folders/1...sp=sharing
(Sorry about background audio)

I would like to see it fixed because game is good by itself, isn't native to Mac apple silicon BUT it does not eat its battery so its ok.


Attached Files Thumbnail(s)
   

.png   Screenshot 2023-07-31 at 11.52.08 PM.png (Size: 59.4 KB / Downloads: 51)
Reply

#2
This is a known issue (https://gitlab.com/xonotic/xonotic-data....ssues/1947). The issue is that there is no standard on the raw axis and button indices that different gamepad models report. The stable branch of the engine (darkplaces) uses these raw indices, but the current development version was changed to instead map the raw axis and button indices to the "standard layout" (xbox, PS etc).
You can:
- Play around with the `joy_axis*` cvars mentioned in the above issue ticket. There is no GUI for this, so you need to use the Console (https://xonotic.org/guide/#console-abc) or edit the config directly
- Switch the engine to the `master` branch. This means you have to compile xonotic yourself. There is currently no guide for compiling on MacOS as none of the devs use Macs.
Reply

#3
(08-01-2023, 08:51 AM)Freddy Wrote: This is a known issue (https://gitlab.com/xonotic/xonotic-data....ssues/1947). The issue is that there is no standard on the raw axis and button indices that different gamepad models report. The stable branch of the engine (darkplaces) uses these raw indices, but the current development version was changed to instead map the raw axis and button indices to the "standard layout" (xbox, PS etc).
You can:
- Play around with the `joy_axis*` cvars mentioned in the above issue ticket. There is no GUI for this, so you need to use the Console (https://xonotic.org/guide/#console-abc) or edit the config directly
- Switch the engine to the `master` branch. This means you have to compile xonotic yourself. There is currently no guide for compiling on MacOS as none of the devs use Macs.

Thank for Your reply. I would like to play around with config. How I can edit the config and where it is on my disk? Any tips to get started. (I could not get something useful from https://xonotic.org/guide/#console-abc, am I dumb or what?)
Reply

#4
The config location is mentioned in https://xonotic.org/faq/#config
In there, you can paste
Code:
"joy_axisforward" "1"
"joy_axispitch" "4"
"joy_axisside" "0"
"joy_axisup" "-1"
"joy_axisyaw" "3"
at the end. You might need to play around with the values a bit.
The console is just a way to set the cvars interactively. They will then get saved to your config when you close Xonotic.
Reply

#5
(08-01-2023, 01:03 PM)Freddy Wrote: The config location is mentioned in https://xonotic.org/faq/#config
In there, you can paste
Code:
"joy_axisforward" "1"
"joy_axispitch" "4"
"joy_axisside" "0"
"joy_axisup" "-1"
"joy_axisyaw" "3"
at the end. You might need to play around with the values a bit.
The console is just a way to set the cvars interactively. They will then get saved to your config when you close Xonotic.

I have mapped the joy_axispitch 5 thru console, and it fixed the main problem. There are no more constant drift up so game is playable. But game wont detect D-pad in settings. I have searched at https://xonotic.org/tools/cacs/#0a/0/ for its "joy*" name but could not find anything. Look like there are no buttons cvars in game console. So, how to make game settings to read D-pad buttons?
Reply

#6
You can try verify that the controller is recognized correctly by MacOS. You can check this in the "System Preferences" > "Bluetooth" or "USB" settings.
penalty shooters 2
Reply

#7
(02-16-2024, 01:22 AM)reyday Wrote: You can try verify that the controller is recognized correctly by MacOS. You can check this in the "System Preferences" > "Bluetooth" or "USB" settings.
penalty shooters A

As I understand from the attached screenshots, it is correctly recognised my macOS.


Attached Files
.png   Screenshot 2024-02-16 at 1.09.30 PM.png (Size: 34.79 KB / Downloads: 9)
.png   Screenshot 2024-02-16 at 1.09.51 PM.png (Size: 36.91 KB / Downloads: 9)
Reply

#8
(02-16-2024, 06:10 AM)Dolfost Wrote:
(02-16-2024, 01:22 AM)reyday Wrote: You can try verify that the controller is recognized correctly by MacOS. You can check this in the "System Preferences" > "Bluetooth" or "USB" settings.
penalty shooters A

As I understand from the attached screenshots, it is correctly recognised my macOS.
I just logged in and tried the gamepad. The problem is still there.


Attached Files
.png   Screenshot 2024-02-16 at 1.14.00 PM.png (Size: 44.64 KB / Downloads: 8)
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation [SOLVED] macOS Sierra: -basedir /path/to/game iqxonotic 12 43,577 12-11-2021, 12:46 PM
Last Post: NappyHead
  [NEED HELP] Unable to turn on gamepad for gameplay JJ^4884 1 2,872 10-09-2020, 07:11 AM
Last Post: Freddy
  [NEED HELP] macOS Mojave 10.14 ComicsNights 0 2,292 09-08-2018, 05:20 AM
Last Post: ComicsNights
  [NEED HELP] How to change dualshock gamepad sensitivity? NEOalquimista 2 4,216 09-04-2017, 11:25 AM
Last Post: It'sMe
  [SOLVED] gamepad 'saitek fps' chocard 4 3,755 05-08-2017, 02:10 PM
Last Post: chocard
  [NEEDS INFO] gamepad seen by nexuiz, not xonotic bereaver 1 4,759 08-12-2011, 04:09 AM
Last Post: Mr. Bougo

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-