Commit Graph

71 Commits (26b8fe0d5bb92f5d0596d9ef296cf20349e89d7f)

Author SHA1 Message Date
Stenzek 424f9a9db9
Controller: Simplify deadzone calculation
Use Pythagoras to measure distance from center. Fixes incorrect results
very close to the center.
12 months ago
Stenzek 1b49f82c98
Controller: Merge all binds into one index space
Simplifies things a bit.
12 months ago
Stenzek f0c67e998b
Controller: Remove GetInputOverlayIconColor()
Use the bind state instead.
12 months ago
Stenzek 3624474b91
Controller: Remove unused InAnalogMode() 12 months ago
Stenzek ffa0e8d131
Qt: Refactor LED bindings
Make it more general and bindable to both the mode and RGB LED, that way
it can be used on Dualshock 4 as well.
12 months ago
Stenzek 6fcb1194d5
FullscreenUI: Further icon improvements 1 year ago
Stenzek 32963c3f6a
Controller: Use string_view() for localised strings 1 year ago
Stenzek 7bc18c8538
DDGoController: Rewrite to support axis input
And add virtual buttons for each of the possible states.
2 years ago
Stenzek dd7fd32501
Controller: Add GetVibrationMotorState() 2 years ago
Stenzek 462a4a3b50
Controller: Refactor so that GetControllerInfo() can't return null 2 years ago
Stenzek 234e1f721f
FullscreenUI: Improve controller settings page
- Add 'Clear Bindings' menu item.
- Show icons in controller types.
- Add confirmation to Reset Settings.
2 years ago
Stenzek 6f9caa6b12
InputManager: Add proper binds for vibration motors
Instead of the janky "vibration capabilities" flag.

Fixes the "Clear Mappings" button not applying to vibration motors.
2 years ago
Stenzek 5577328f35
Controller: Allow !compatsettings to always start in analog mode 2 years ago
Stenzek 7c627a8c83
Controller: Add JogCon
This is probably wrong, but I have no way of testing it with an actual
force feedback wheel.

PRs welcome to improve it further.
2 years ago
Stenzek 4fe3e1147d
Controller: Add GetPortDisplayName() that takes pad index 2 years ago
Stenzek 0d3501d435
Misc: Pass SettingsInterface by const reference 2 years ago
Stenzek e0bc03b525
Controller: Fix localization with new types 2 years ago
Stenzek e4a358cacb
Controller: Add Pop'n and Densha De Go Controllers
Variants of digital controller with different buttons grounded.
2 years ago
Stenzek 036e11f7a8
Qt: Remove unused variable 2 years ago
Stenzek 4e880280bd
Qt: Fix inconsistent multitap addressing
And remove multiple copies of the same variables while we're at it.
2 years ago
Stenzek 7f4e5d55db
Misc: Update copyright headers 2 years ago
Stenzek 9e3507e0f4
InputManager: Support multiple mice via raw input
Only on Windows for now.
2 years ago
Stenzek fda6140088
GameDatabase: Add DisableAutoAnalogMode trait
For games that can handle analog controllers, but the sticks do not do
anything.
2 years ago
Stenzek aa9a5e383d
ImGuiOverlays: Change icon colour depending on controller mode 2 years ago
Stenzek fa104acdd1
Misc: Purge unused code and report startup error to host 2 years ago
Stenzek ca3cfbaa99
Misc: Pass string_view by value 2 years ago
Stenzek d094978214
Justifier: Add controller implementation 2 years ago
Stenzek 3e99084770
Settings: Fix double source of truth for controller names 2 years ago
Matheus Fraguas 07c012aee5
Negcon rumble (#3177)
* Implemented NeGcon with rumble. Code is a mix of the existing NeGcon AnalogController modes.

* Fix negcon id reply and analog/digital toggle.

* Implemented NeGcon with rumble. Code is a mix of the existing NeGcon AnalogController modes.

* Fix negcon id reply and analog/digital toggle.

* Update macros

* Code cleanup
2 years ago
Stenzek 7d5e2bf50c
FullscreenUI: More localization fixes 3 years ago
Stenzek dfb27c14be
FullscreenUI: More localization fixes 3 years ago
Stenzek fc6359457b
ImGuiManager: Use PromptFont icons for input OSD 3 years ago
Stenzek 3cd28f433b Controller: Use std::span 3 years ago
Stenzek 7e07d2feb8 GunCon: Add relative pointer binding 3 years ago
Stenzek 259193a8e5 GPUDevice: Move software cursor to ImGuiManager 3 years ago
Stenzek 1ec6aee5bf Host: Split translation macros dependent on return type 3 years ago
Dolphin 9526e15ec2
Update japanese translation (#2969)
* update base duckstation-qt_ja.ts

* update Japanese translation

* translate controller name on controllersettingsdialog
3 years ago
Connor McLaughlin 395e9a934b InputManager: Support inverted full axis
i.e. pedals
4 years ago
Connor McLaughlin 8c7a192128 Misc: Add copyright/license statement to applicable files
Should've did this in the beginning.
4 years ago
Connor McLaughlin f5b7311a45 Controllers: Make deadzone circular 4 years ago
Connor McLaughlin 4feb5ad548 Controller: Make InAnalogMode() virtual 4 years ago
Connor McLaughlin 35f272b336 Settings: Set default controller type to AnalogController 4 years ago
Connor McLaughlin b42b5501f6 UI: Massive revamp, new features and improvements 4 years ago
Connor McLaughlin b7fbde31a7 Move utility classes from common to own static lib 4 years ago
Connor McLaughlin 251043f11a OSD: Add controller input display overlay 6 years ago
Albert Liu 5ff3299384 Controller: Add method for reading analog input bytes 6 years ago
Connor McLaughlin 8bb5ff47eb PlaystationMouse: Add option to use relative mode 6 years ago
Connor McLaughlin ca42d027ac Qt: Implement relative mouse mode 6 years ago
Connor McLaughlin 47f0720b93 Controller: Always preserve internal state when loading/resuming
Fixes analog mode getting disabled when loading state.
6 years ago
Albert Liu 191e6b0496 DigitalController: Add option to force as Pop'n Controller 6 years ago