mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-17 12:58:55 +02:00
InputCommon: Make hotkeys and input detection aware of Ctrl -> L_Ctrl / R_Ctrl hierarchy.
This commit is contained in:
@ -93,6 +93,12 @@ QString DetectExpression(QPushButton* button, ciface::Core::DeviceContainer& dev
|
||||
if (!full_expression.isEmpty())
|
||||
full_expression += QChar::fromLatin1('+');
|
||||
|
||||
// Return the parent-most name if there is one for better hotkey strings.
|
||||
// Detection of L/R_Ctrl will be changed to just Ctrl.
|
||||
// Users can manually map L_Ctrl if they so desire.
|
||||
if (quote == Quote::On)
|
||||
input = device->GetParentMostInput(input);
|
||||
|
||||
full_expression += MappingCommon::GetExpressionForControl(
|
||||
QString::fromStdString(input->GetName()), device_qualifier, default_device, quote);
|
||||
}
|
||||
|
Reference in New Issue
Block a user