- Quatre mamonaes que he fet en el portatil
This commit is contained in:
6
main.cpp
6
main.cpp
@@ -172,6 +172,12 @@ int main(int argc, char *argv[])
|
||||
bool result = true;
|
||||
|
||||
if (e.type == SDL_QUIT) { zx_system::shutdown(); break; }
|
||||
if (e.type == SDL_JOYDEVICEADDED) {
|
||||
printf("JOYSTICK CONECTAT: %i\n", e.jdevice.which);
|
||||
}
|
||||
if (e.type == SDL_JOYDEVICEREMOVED) {
|
||||
printf("JOYSTICK DESCONECTAT: %i\n", e.jdevice.which);
|
||||
}
|
||||
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