Input: model upate/poll finalitzat
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user