| 24 | } |
| 25 | |
| 26 | InputType stringToInputType(const std::string& type) |
| 27 | { |
| 28 | if(type == "axis") |
| 29 | return TYPE_AXIS; |
| 30 | if(type == "button") |
| 31 | return TYPE_BUTTON; |
| 32 | if(type == "hat") |
| 33 | return TYPE_HAT; |
| 34 | if(type == "key") |
| 35 | return TYPE_KEY; |
| 36 | return TYPE_COUNT; |
| 37 | } |
| 38 | |
| 39 | |
| 40 | std::string toLower(std::string str) |