fyhuang / enjoy2

Transform joystick input into keyboard and mouse events (OSX)
MIT License
363 stars 55 forks source link

DualShock 4 Mouse Drift #18

Open spsajewski opened 9 years ago

spsajewski commented 9 years ago

I've been testing out Enjoy2 with a DS4 controller and have found that when I assign mouse movements, both horizontal and vertical, to any of the axises 1-4, I get mouse drift when the analog sticks are neutral. This issue occurs whether I'm using the controller wired or wirelessly. Is there a way to calibrate the dead zone so that I no longer get any mouse drift? Other than that, Enjoy2 has worked flawlessly with the DS4.

citelao commented 9 years ago

Should be fixed(ish) in #23

j0hnmen commented 6 years ago

Hello @citelao ! I have the same problem on Enjoy2 on the analog right joystick axis. Sorry I'm new on Github and I'm kind of a newb in programming, but I can manage to dig into the Mac and I understand the Mac architecture.. But I can't understand what to do in the Enjoy2 app and where to add the lines of code you typed.. I feel like the "0.5 makes all the difference" post is what I need. I feel it's very simple to use but I can't understand where to put those lines of code.. Could you enlighten me ? Many thanks if you do !!!

citelao commented 6 years ago

Try downloading the compiled version of my code:

https://github.com/citelao/enjoy2/releases/tag/vidk

That should be all you need.

Since the pull request is merged, if you download the repository, open the Xcode project, and recompile, you will have my changes as well.

— Ben (ben@stolovitz.com)


From: j0hnmen notifications@github.com Sent: Monday, December 11, 2017 4:19:09 PM To: fyhuang/enjoy2 Cc: Ben Stolovitz; Mention Subject: Re: [fyhuang/enjoy2] DualShock 4 Mouse Drift (#18)

Hello @citelaohttps://github.com/citelao ! I have the same problem on Enjoy2 on the analog right joystick axis. Sorry I'm new on Github and I'm kind of a newb in programming, but I can manage to dig into the Mac and I understand the Mac architecture.. But I can't understand what to do in the Enjoy2 app and where to add the lines of code you typed.. I feel like the "0.5 makes all the difference" post is what I need. I feel it's very simple to use but I can't understand where to put those lines of code.. Could you enlighten me ? Many thanks if you do !!!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/fyhuang/enjoy2/issues/18#issuecomment-350902244, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAabK39qCLTjwm9qxyUd7-X3NKyTUyzkks5s_cZ9gaJpZM4DTs3f.

j0hnmen commented 6 years ago

Thank you for the quick response @citelao ! So I downloaded the Enjoy2app.zip + source code (zip), I got the Enjoy2app and the "enjoy2-vidk" folder, should I put the content of the enjoy2-vidk folder into the "show package content" of the app ?

Also, when I try to open the project.pbxproj, it says that Enjoy2 cannot open files of this type. And I don't understand what you mean by recompile ?

Thank you so much if you take the time to answer me !

citelao commented 6 years ago

No, if you unzip the app and run it, it should work fine.

cvrsecatcher commented 6 years ago

Hey, this issue is back. I just downloaded the latest version and it's causing my mouse to drift.

citelao commented 6 years ago

@cvrsecatcher: even using the download linked above?

cvrsecatcher commented 6 years ago

@citelao even using the links above. I'm using a brand new PS4 controller with the mouse movement set to the right joystick (it was also happening on the left).

When I push UP and move the mouse vertically it stops the drift but if I move any other direction the drift returns.

(Also, it's a very small inconvenience. Thanks for building this!)

citelao commented 6 years ago

My assumption is that your controller specifically needs a larger deadzone. If you feel confident modifying the code and rebuilding, you can increase analogThreshold to increase the deadzone.

I'd like to add a slider, but I've never done OS X programming before :)

xrayj11 commented 6 years ago

What version of xcode is enjoy2 supposed to run on, i am getting errors and i believe it is because of the software version.

Mc-Markus commented 5 years ago

having this problem with the switch pro controller as well