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
Add relative input for the Wiimote IR #4010
Conversation
| auto* const pad_setting = static_cast<PadSettingCheckBox*>(control->GetClientData()); | ||
| pad_setting->UpdateValue(); | ||
|
|
||
| // TODO: find a cleaner way to have actions depending on the setting |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
Review status: 0 of 4 files reviewed at latest revision, 3 unresolved discussions. Source/Core/DolphinWX/InputConfigDiag.cpp, line 114 [r1] (raw file):
This doesn't need to be allocated with new, you can just declare it as a value type variable. What is this trying to accomplish, by the way? Source/Core/InputCommon/ControllerEmu.h, line 378 [r1] (raw file):
This probably shouldn't be publicly exposed, since it's only used within this class. Comments from Reviewable |
|
Review status: 0 of 4 files reviewed at latest revision, 4 unresolved discussions. Source/Core/DolphinWX/InputConfigDiag.h, line 227 [r1] (raw file):
Comments from Reviewable |
|
Review status: 0 of 4 files reviewed at latest revision, 5 unresolved discussions. Source/Core/DolphinWX/InputConfigDiag.cpp, line 488 [r1] (raw file):
This will likely break for different language settings. We really shouldn't have code that depends on user-facing strings. Comments from Reviewable |
fc29b02
to
1893797
Compare
|
Review status: 0 of 4 files reviewed at latest revision, 5 unresolved discussions. Source/Core/DolphinWX/InputConfigDiag.cpp, line 114 [r1] (raw file):
|
|
Source/Core/DolphinWX/InputConfigDiag.cpp, line 114 [r1] (raw file):
|
|
Source/Core/DolphinWX/InputConfigDiag.h, line 227 [r1] (raw file):
|
1893797
to
6b60a90
Compare
|
Review status: 0 of 4 files reviewed at latest revision, 4 unresolved discussions. Source/Core/DolphinWX/InputConfigDiag.cpp, line 114 [r1] (raw file):
|
|
It would be nice to have the speed of movement adjustable when using relative IR (and maybe a "reset pointer to center" binding or hotkey?). |
|
You can actually already adjust the speed with the existing Range feature. Just right-click on each axis and increase the range to make it faster; decrease it to make it slower. |
|
Whoops, I forgot we had a range option in advanced settings. About recentering, I think a new binding which remains grayed out unless Relative Input is enabled should do the trick... |
| private: | ||
| // This is used to reduce the cursor speed for relative input | ||
| // to something that makes sense with the default range. | ||
| static constexpr double SPEED_MULTIPLIER = 0.02; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
6b60a90
to
8888b2d
Compare
|
Sweet! This PR now looks perfect on user-experience side! |
|
Err... ping? |
This adds an option to enable relative input for the Wiimote IR as described in issue 9014. Enabling it will result in the pointer not going back to the centre and the inputs will control the direction, not the absolute position. Also adds a Dead Zone setting which is really needed when relative input is enabled to prevent the cursor from slowly drifting on most controllers. (Note: the Deadzone setting has no effect when relative input is disabled)
This changes InputConfigDiag to disable the Dead Zone field in the IR group when relative input is disabled.
This makes the GUI show the settings that are loaded when the config gets reloaded, instead of showing potentially outdated settings that are not applied.
This adds a recenter control binding which allows recentering the cursor when relative input is enabled. (EnableSettingControl is renamed to avoid confusions.)
8888b2d
to
149654d
Compare
This adds an option to enable relative input for the Wiimote IR as described in issue 9014.
Enabling it will result in the pointer not going back to the centre and the inputs will control the direction, not the absolute position.
Also adds a Dead Zone setting which is really needed when relative input is enabled to prevent the cursor from slowly drifting on most controllers. (Note: the Deadzone setting has no effect when relative input is disabled, so the field is disabled when relative input is disabled)
This change is