Input: model upate/poll finalitzat

This commit is contained in:
2025-06-29 11:37:01 +02:00
parent ce1ae74e88
commit 5006289a5d
21 changed files with 183 additions and 155 deletions

View File

@@ -264,7 +264,7 @@ namespace Options
}
else if (var == "controller.0.type")
{
controllers.at(0).type = static_cast<InputDeviceToUse>(std::stoi(value));
controllers.at(0).type = static_cast<InputDevice>(std::stoi(value));
}
else if (var == "controller.0.button.fire_left")
{
@@ -296,7 +296,7 @@ namespace Options
}
else if (var == "controller.1.type")
{
controllers.at(1).type = static_cast<InputDeviceToUse>(std::stoi(value));
controllers.at(1).type = static_cast<InputDevice>(std::stoi(value));
}
else if (var == "controller.1.button.fire_left")
{
@@ -338,11 +338,11 @@ namespace Options
{
if (controller.player_id == player_id)
{
controller.type = InputDeviceToUse::ANY;
controller.type = InputDevice::ANY;
}
else
{
controller.type = InputDeviceToUse::CONTROLLER;
controller.type = InputDevice::CONTROLLER;
}
}
}
@@ -365,7 +365,7 @@ namespace Options
{
for (const auto &controller : controllers)
{
if (controller.type == InputDeviceToUse::ANY)
if (controller.type == InputDevice::ANY)
{
return controller.player_id;
}