| 54 | }; |
| 55 | |
| 56 | ControllerButton StringToKey(const char *text) |
| 57 | { |
| 58 | for (std::size_t i = 0; i != keyNames.size(); ++i) |
| 59 | { |
| 60 | if (strcmp(keyNames[i], text) == 0) |
| 61 | { |
| 62 | return static_cast<ControllerButton>(i); |
| 63 | } |
| 64 | } |
| 65 | return NONE; |
| 66 | } |
| 67 | |
| 68 | RGBAColor DecodeColorValue(const char *value) |
| 69 | { |