New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[input] Add 'Enable Joystick' to GUI settings. Fix for http://trac.xbmc.org/ticket/13146 #1111
Conversation
I don't think that I like that. As I can see from the imon thread this is a bug in the imon firmware and I don't want to fix their shit in our code. |
btw for your next pr please make sure that you don't have the merge branch thingies in. Try something like git pull --rebase upstream master to get your changes on top without the merge. |
iMon claims that this it the bug in DirectX. See 'Cause' in http://www.soundgraph.com/forums/faq.php?faq=sg_faq_sw_imon_manager_g_01#faq_sg_faq_software_products_gamecontrol |
Putting aside the issue of whether we want it, the above 3 commits could be squashed into one, plus some of the checks (in ProcessEventClient) aren't needed - they don't actually use the joystick hardware stuff, rather they use the joystick keymapping stuff. Also, there's some whitespace issues on the last commit. To squash into one, git rebase -i HEAD~3 and change the last 2 commits to squash. You'll then get to rewrite the commit message. |
To get you into thinking, is there a possibility to detect the firmware in question? Maybe via a key in the registry or a certain dll which is there? |
OK, I'll combine all commits in one, fix whitespaces and remove some checks. |
Started development thread for discussion: http://forum.xbmc.org/showthread.php?tid=135218 |
Rewrote from the scratch. |
I like the idea with the gui settings but you mixed too many different changes into one commit which makes it difficult to review. One commit for the gui setting and one commit for the cosmetic changes please. |
There are just a few cosmetic points. |
@jmarshallnz what do you think? can this go in? |
OK. I'll split it to several commits. :) |
Just two are fine :) |
Too late. :) |
@jmarshallnz . Fine? |
Karlson2k: yes - please squash that one down, remove the russian translation, fix the Reset issue, and separate out your one-line if()'s onto two lines. |
It was done already, except squash. |
Looks fine - please squash the fixups into the appropriate commits and I'll pull it in. |
@jmarshallnz finally done! |
[input] Add 'Enable Joystick' to GUI settings. Fix for http://trac.xbmc.org/ticket/13146
Thanks :) |
Fixing localtime on Linux
Fixing localtime on Linux
Added GUI settings for control Joystick usage.
Some addition to CJoystick class - identical to CStatMouse.
Now Joystick can be enabled/disabled (and Initialized/deinitialized) by calling g_Joystick.SetEnable (true / false)
Also can be used as workaround for popular iMON (SoundGraph) hardware on Windows, which with latest DirectInput patches falls into endless Remove/Insert loop. That's make remote iMon control and display unusable.