| 177 | } |
| 178 | |
| 179 | static inline df::interface_key get_string_key(const std::set<df::interface_key> *input) |
| 180 | { |
| 181 | for (auto it = input->begin(); it != input->end(); ++it) |
| 182 | { |
| 183 | if (DFHack::Screen::keyToChar(*it) >= 0) |
| 184 | return *it; |
| 185 | } |
| 186 | return df::interface_key::NONE; |
| 187 | } |
| 188 | |
| 189 | static inline char get_string_input(const std::set<df::interface_key> *input) |
| 190 | { |
no test coverage detected