16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 05:29:18 +02:00

input changes

This commit is contained in:
milek7
2017-12-29 16:39:40 +01:00
parent 19d4c51915
commit f55c22cd1b
2 changed files with 8 additions and 10 deletions

View File

@@ -168,12 +168,10 @@ command_queue::push( command_data const &Command, std::size_t const Recipient )
else if (Command.action == GLFW_RELEASE)
m_active_continuous.erase(Command.command);
}
else
{
auto lookup = m_commands.emplace( Recipient, commanddata_sequence() );
// recipient stack was either located or created, so we can add to it quite safely
lookup.first->second.emplace( Command );
}
auto lookup = m_commands.emplace( Recipient, commanddata_sequence() );
// recipient stack was either located or created, so we can add to it quite safely
lookup.first->second.emplace( Command );
}
// retrieves oldest posted command for specified recipient, if any. returns: true on retrieval, false if there's nothing to retrieve