JoyShockMapper icon indicating copy to clipboard operation
JoyShockMapper copied to clipboard

OSX Support?

Open LeeNX opened this issue 4 years ago • 5 comments

I don't have the foggiest of what it would take to support Mac/OSX, but I have a DS4 controller plus OSX and I can try and compile bits with feedback, but I am no Developer.

LeeNX avatar Jul 22 '20 08:07 LeeNX

Right now I guess the Linux version will build if you install X11 from xquartz and then set up all the requirements via brew. Its possilbe some changes to the makefile would be needed as well, which is trivial if you know a little about macos and makefiles. There might be some hardcoded stuff pointing to devices @kicsyromy ?

But If it would work it would work that easily it would only work for programs running in the Xserver. Which is no normal for Mac games. Maybe you could get it to work with steam games if you installed steam in wine, but I do believe you need to compile wine for macos to use x11. I am almost sure it is just a setting (command option) when you compile. And maybe joyshockmapper would need to run in a terminal that uses the xserver. Luckily I think xterm is installed when you install x11 from xquartz.

Another issue is that, I think you can only run 64bit games in OSX now? Sorry been a while since I booted my old MBP in the cellar. And also DXVK doesn't work on OSX,. You have Molten but I dont know if it plays good with wine or x11, and I don't think game compatibility is such that they can brag so much. So you may or may not only be able to run 64bit games that use OpenGL or maybe DirectX9. Which narrows the compability list quite a fair bit. But maybe you can play FarCry1 ? :smile:

sigboe avatar Jul 22 '20 17:07 sigboe

Hello, There is no hard dependency on X11 for the Linux port. On the other hand there are platform-specific implementations for several things (have a look at the README for an overview of the files in the project). Most notably, I would say, is the mouse/keyboard event simulation, but there is also console I/O, notification icon, and other small things here or there. Another big part that would need to build on macOS is JoyShockLibrary that does the actual HID interaction, though this should be easier to port since it uses a cross-platform library for interacting with the controllers. The build system was specifically chosen so that it's cross-platform, CMake in our case. I think what games are, or aren't available on the platform is not very relevant, while true that there might be fewer games (native or not) that work on macOS, the ones that are available I'm sure could benefit from gyro.

kicsyromy avatar Jul 23 '20 05:07 kicsyromy

@LeeNX IMO it is only in beta yet, but if you try to update steam to the beta version, and connect a PS4 or Switch Pro controller, I think you can get Flick Stick and Gyro working since it is in the second latest steam beta now.

It is missing an easy way to get real world settings, so you might need to fiddle with it a bit to get it to be 1:1.

Just saying this as you might want to try it before someone looks into porting JoyShockMapper to macos

sigboe avatar Jul 23 '20 06:07 sigboe

Any update on this, osx support would be really appreciated.

reiganarmstrong avatar Nov 17 '23 11:11 reiganarmstrong

It's working fine in corssover in Sonoma 14.4 (M1 Mac). but it can't connect my game controller. i use Fldigi APEX3 Game Controller. this controller make in china .

Sanchew avatar Apr 01 '24 06:04 Sanchew