- Crec que estaba en lo de que els axis pogueren funcioanr com a botons de pad

This commit is contained in:
2026-05-19 18:08:07 +02:00
parent afa59cdb5a
commit 798a56efbd
2 changed files with 9 additions and 6 deletions
+3
View File
@@ -204,6 +204,9 @@ int main(int argc, char *argv[])
if (e.type == SDL_CONTROLLERBUTTONUP) {
gamepad::buttonUp(e.jbutton.which, e.jbutton.button);
}
if (e.type == SDL_CONTROLLERAXISMOTION) {
//if (e.jaxis.value>16000) printf("%i\n", e.jaxis.value);
}
if (e.type == SDL_MOUSEBUTTONDOWN) result = ui::window::sendEvent(e.button.windowID, &e);
if (e.type == SDL_MOUSEBUTTONUP) result = ui::window::sendEvent(e.button.windowID, &e);
if (e.type == SDL_MOUSEMOTION) result = ui::window::sendEvent(e.motion.windowID, &e);