input_common: Add VibrationDevice and VibrationDeviceFactory
A vibration device is an input device that returns an unsigned byte as status. It represents whether the vibration device supports vibration or not. If the status returns 1, it supports vibration. Otherwise, it does not support vibration.
This commit is contained in:
parent
38110dd485
commit
e9e1876e82
19 changed files with 327 additions and 101 deletions
|
@ -478,6 +478,8 @@ void QtControllerSelectorDialog::UpdateControllerState(std::size_t player_index)
|
|||
return;
|
||||
}
|
||||
|
||||
ConfigureVibration::SetVibrationDevices(player_index);
|
||||
|
||||
// Player 1 and Handheld
|
||||
auto& handheld = Settings::values.players.GetValue()[8];
|
||||
// If Handheld is selected, copy all the settings from Player 1 to Handheld.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue