fyhuang / enjoy2

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

Fix analog joystick control #23

Closed citelao closed 9 years ago

citelao commented 9 years ago

This simple fix should fix a lot of the "drift" bugs and also adds a small movement dead zone to analog movements.

citelao commented 9 years ago

Should have those constants!

Configurability needs to wait for a later release.

fyhuang commented 9 years ago

Cool, looks good!

andrewroth commented 8 years ago

I'm still getting a lot of mouse drift to the top-left of the screen when using a wii nunchuck :(

citelao commented 8 years ago

@andrewroth as in you've bound two axes to move the mouse up and left and they're constantly being triggered?

andrewroth commented 8 years ago

The mouse is constantly being moved up and to the left, but I tried to set the axis to just horizontal and vertical movement, not just to move up and move left. When I move the nunchuck to the bottom right it actually stops the mouse from moving up and to the left but doesn't move it down and to the right at all.

citelao commented 8 years ago

I don't think the released executable is the latest version.

Can you build from source? There are a few syntax errors with the latest version (isa is deprecated or something) but you can fix them with XCode's autosuggest.

andrewroth commented 8 years ago

I had a feeling that might be it.. but I did check the version in the about dialog and it matched the version numbers you have in git. I'm happy to try a source build though. Are there some instructions?

citelao commented 8 years ago

I didn’t change the version numbers :/

On Jan 11, 2016, at 11:45 AM, Andrew Roth notifications@github.com wrote:

I had a feeling that might be it.. but I did check the version in the about dialog and it matched the version numbers you have in git. I'm happy to try a source build though. Are there some instructions?

— Reply to this email directly or view it on GitHub https://github.com/fyhuang/enjoy2/pull/23#issuecomment-170613682.

andrewroth commented 8 years ago

Hey, any hints for compiling it? Do I just open in xcode and hit a compile now type button/menu item?

citelao commented 8 years ago

Yeah that's it. I have a compiled version but I can't upload it here... I'll put it on my forked version.

citelao commented 8 years ago

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

andrewroth commented 8 years ago

Much better! It's usable. It still drifts slowly to the left. Oddly, even after I hit the Stop button it still drifts a bit... but I can use it.