some json parsing error
This commit is contained in:
@@ -45,9 +45,9 @@ namespace Input {
|
||||
|
||||
|
||||
void
|
||||
InputDriverFactory::create_input_events(json matrix_config, std::map<char, std::shared_ptr<Event>> address_event_map,
|
||||
std::map<std::string, std::shared_ptr<Event>> name_event_map) {
|
||||
for (auto &json_event : matrix_config) {
|
||||
InputDriverFactory::create_input_events(json matrix_config, std::map<char, std::shared_ptr<Event>>& address_event_map,
|
||||
std::map<std::string, std::shared_ptr<Event>>& name_event_map) {
|
||||
for (auto &json_event : matrix_config.at("input_matrix")) {
|
||||
|
||||
try {
|
||||
std::string name = json_event.at("name");
|
||||
|
||||
Reference in New Issue
Block a user