08.05.2013 Views

Curso de introducción a videojuegos multiplataforma con SDL

Curso de introducción a videojuegos multiplataforma con SDL

Curso de introducción a videojuegos multiplataforma con SDL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Curso</strong> <strong>de</strong> <strong>introducción</strong> a vi<strong>de</strong>ojuegos <strong>multiplataforma</strong> <strong>con</strong> <strong>SDL</strong><br />

Eventos <strong>de</strong>l gestor <strong>de</strong><br />

© 2004 – Bruno González (STenyaK)<br />

Pablo Orduña (NcTrun)<br />

ventanas - III<br />

● Si el usuario intenta cerrar la ventana:<br />

– la <strong>SDL</strong> lo traduce a un <strong>SDL</strong>_Event cuyo<br />

type es <strong>SDL</strong>_QUIT.<br />

– Será un <strong>SDL</strong>_QuitEvent, pero no tendrá<br />

ningún dato salvo el campo type<br />

● La <strong>SDL</strong> también traduce a eventos el<br />

que el ratón esté o no encima <strong>de</strong> la<br />

ventana <strong>de</strong>l programa, o que el usuario<br />

esté mirando otra ventana.<br />

– Para ello está el <strong>SDL</strong>_ActiveEvent<br />

e-ghost – ESIDE – Universidad <strong>de</strong> Deusto

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!