- Crec que estaba en lo de que els axis pogueren funcioanr com a botons de pad
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user