apegat de mala manera els shaders del CCAE i fets uns apanyets per a vore si compila
This commit is contained in:
@@ -224,7 +224,7 @@ std::string Input::getControllerName(int controller_index) const { return num_ga
|
||||
int Input::getNumControllers() const { return num_gamepads_; }
|
||||
|
||||
// Obtiene el indice del controlador a partir de un event.id
|
||||
int Input::getJoyIndex(int id) const {
|
||||
int Input::getJoyIndex(SDL_JoystickID id) const {
|
||||
for (int i = 0; i < num_joysticks_; ++i) {
|
||||
if (SDL_GetJoystickID(joysticks_[i]) == id) {
|
||||
return i;
|
||||
|
||||
Reference in New Issue
Block a user