-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] Final Fixes (MMJOY + evdev) #3817
Conversation
If this is actually your last PR for this, I promise to shave my head. |
d2a58a2
to
4286bfd
Compare
Will be plans to implement a mouse axis as some of gamepad's analog sticks? It would be great in the end! :) |
Found first bugs with this PR. |
2a225ac
to
f1c14e4
Compare
try again @Psycho-A |
@Megamouse |
be2d56c
to
25f66e2
Compare
I'll add min and max size to the log. |
Axis are checked by ranges from negative to positive space while triggers are checked by 0+ range. So if your axis has 0+ range it will be handled as trigger. I could do a button like "handle trigger axis" to whitelist those axis and handle them accordingly |
minor style fix
I added min and max to the log message in order to make sure I'm doing the right thing next |
@Megamouse I opened an issue with input gamepad, (#3924) i don´t know if this is related with your work in this PR. BTW, this issue happens in master build and with the latest build (artifact) of this PR in appveyor. |
When will this be merged? Keyboard on Windows is still broken on Master builds as I described it above. |
@Psycho-A Be patient, every PR needs a lot of testing and pass all checks. It's better to be sure that it doesn't break things. |
Checking for the extreme values, I added this in your code:
Here are the outputs:
DragonRise:
|
I never tested with 2 joysticks after the nice GUI PR. On Linux, the 2nd stick is not usable: it's detected in the Configuration>Pads menu, but it's not detected in the game. |
@toccata10 try this change please edited image |
this renders rpcs3 very unstable (it segfaults). |
@@ -319,6 +319,8 @@ class PadHandlerBase | |||
protected: | |||
static const u32 MAX_GAMEPADS = 7; | |||
|
|||
std::array<bool, MAX_GAMEPADS> last_connection_status{{ false, false, false, false, false, false, false }}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use bitset instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For 7 boolean values? Seriously?
Commenting the return std:.. line and adding a continue works: I tested with 2 xbox sticks and it works fine. |
and some minor commenting
This Pull Request broke Catherine for me and another user with DS3 and DS4. After going to the title screen it won't let you load a game or open the configuration menu. You can move the cursor/selection up and down but pressing X won't do anything. Edit fixed with new PR that was merged. |
This broke NPUB30034 Super Street Fighter 2 Turbo HD using mmjoystick x is not working in the game |
#3796
#3818
#3825
#3839
#3924