| 1130 | } |
| 1131 | |
| 1132 | Input::playerControlType_t Input::getPlayerControlType() |
| 1133 | { |
| 1134 | if (multiplayer != SINGLE && player != 0) { |
| 1135 | return inputs[0].getPlayerControlType(); |
| 1136 | } |
| 1137 | #ifndef EDITOR |
| 1138 | if ( ::inputs.hasController(player) ) |
| 1139 | { |
| 1140 | return Input::PLAYER_CONTROLLED_BY_CONTROLLER; |
| 1141 | } |
| 1142 | if ( ::inputs.bPlayerUsingKeyboardControl(player) ) |
| 1143 | { |
| 1144 | return Input::PLAYER_CONTROLLED_BY_KEYBOARD; |
| 1145 | } |
| 1146 | #endif // !EDITOR |
| 1147 | return Input::PLAYER_CONTROLLED_BY_INVALID; |
| 1148 | } |
| 1149 | |
| 1150 | std::vector<std::string> Input::getBindingsForInput(const char* input) const { |
| 1151 | std::vector<std::string> result; |
no test coverage detected