Manager: Show keyboard type in details pane
This commit is contained in:
@@ -261,6 +261,7 @@ VMManagerDetails::updateConfig(VMManagerSystem *passed_sysconfig) {
|
||||
|
||||
// Input
|
||||
inputSection->clear();
|
||||
inputSection->addSection(tr("Keyboard"), passed_sysconfig->getDisplayValue(Display::Name::Keyboard));
|
||||
inputSection->addSection(tr("Mouse"), passed_sysconfig->getDisplayValue(Display::Name::Mouse));
|
||||
inputSection->addSection(tr("Joystick"), passed_sysconfig->getDisplayValue(Display::Name::Joystick));
|
||||
|
||||
|
||||
@@ -61,6 +61,7 @@ extern "C" {
|
||||
#include <86box/gameport.h>
|
||||
#include <86box/midi.h>
|
||||
#include <86box/network.h>
|
||||
#include <86box/keyboard.h>
|
||||
#include <86box/mouse.h>
|
||||
}
|
||||
|
||||
@@ -929,6 +930,14 @@ VMManagerSystem::setupVars() {
|
||||
}
|
||||
display_table[Display::Name::NIC] = nicList.join(VMManagerDetailSection::sectionSeparator);
|
||||
|
||||
// Input (Keyboard)
|
||||
if (input_config.contains("keyboard_type")) {
|
||||
auto keyboard_internal_name = input_config["keyboard_type"];
|
||||
auto keyboard_dev = keyboard_get_from_internal_name(keyboard_internal_name.toUtf8().data());
|
||||
auto keyboard_dev_name = DeviceConfig::DeviceName(keyboard_get_device(keyboard_dev), keyboard_get_internal_name(keyboard_dev), 0);
|
||||
display_table[Display::Name::Keyboard] = keyboard_dev_name;
|
||||
}
|
||||
|
||||
// Input (Mouse)
|
||||
auto mouse_internal_name = input_config["mouse_type"];
|
||||
auto mouse_dev = mouse_get_from_internal_name(mouse_internal_name.toUtf8().data());
|
||||
|
||||
@@ -57,6 +57,7 @@ enum class Name {
|
||||
Audio,
|
||||
Voodoo,
|
||||
NIC,
|
||||
Keyboard,
|
||||
Mouse,
|
||||
Unknown
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user