1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
\r
5 <meta http-equiv="Content-Style-Type" content="text/css">
\r
6 <meta name="keywords" content="Simple Directmedia Layer SDL2.0">
\r
7 <link rel="top" href="index.html" title="
\83z
\81[
\83\80">
\r
8 <link rel="parent" href="CategoryEvents.html" title="1
\82Â
\8fã">
\r
9 <title>SDL_PollEvent</title>
\r
12 <a href="index.html">
\96Ú
\8e\9f</a> - <a href="ApiByCategory.html">API(
\8b@
\94\
\95Ê)</a> - <a href="CategoryEvents.html">
\83C
\83x
\83\93\83g
\8f\88\97\9d</a> - SDL_PollEvent
\r
14 <h1>SDL_PollEvent</h1>
\r
15 \96¢
\8f\88\97\9d\82Ì
\83C
\83x
\83\93\83g
\82ð
\83L
\83\85\81[
\82©
\82ç
\93¾
\82é
\r
17 <code>int SDL_PollEvent(SDL_Event* event)</code>
\r
19 <table border="1" summary="SDL_PollEvent">
\r
20 <tr><td>event</td><td>
\83L
\83\85\81[
\82©
\82ç
\93¾
\82½
\83C
\83x
\83\93\83g
\82ð
\91ã
\93ü
\82·
\82é<a href="SDL_Event.html">SDL_Event</a>
\82Ü
\82½
\82ÍNULL</td></tr>
\r
22 <h2>
\96ß
\82è
\92l</h2>
\r
23 \96¢
\8f\88\97\9d\82Ì
\83C
\83x
\83\93\83g
\82ª
\82 \82é
\8fê
\8d\87\82Í1,
\82È
\82¢
\8fê
\8d\87\82Í0
\82ð
\96ß
\82·.
\r
26 event
\82ªNULL
\82Å
\82È
\82¢
\8fê
\8d\87,
\83C
\83x
\83\93\83g
\82Í
\83L
\83\85\81[
\82©
\82ç
\8dí
\8f\9c\82³
\82ê, <a href="SDL_Event.html">SDL_Event</a>
\8d\
\91¢
\91Ì
\82Ìevent
\82É
\91ã
\93ü
\82³
\82ê
\82é.
\r
27 \96ß
\82Á
\82½1
\82Í,
\8dí
\8f\9c\82³
\82êSDL
\83C
\83x
\83\93\83g
\8d\
\91¢
\91Ì
\82É
\8eû
\82ß
\82ç
\82ê
\82½
\82±
\82Ì
\83C
\83x
\83\93\83g
\82Ì
\82±
\82Æ
\82ð
\8ew
\82µ
\82Ä
\82¢
\82é
\81\
\81\
\91±
\82
\83C
\83x
\83\93\83g
\82Ì
\82±
\82Æ
\82Å
\82Í
\82È
\82¢.
\r
30 event
\82ªNULL
\82Ì
\8fê
\8d\87,
\83C
\83x
\83\93\83g
\82ª
\83L
\83\85\81[
\82É
\82 \82é
\8fê
\8d\871
\82ð
\96ß
\82·
\82ª,
\83C
\83x
\83\93\83g
\82Í
\8dí
\8f\9c\82³
\82ê
\82È
\82¢.
\r
33 \82±
\82Ì
\8aÖ
\90\94\82Í
\88Ã
\96Ù
\82Ì
\82¤
\82¿
\82É<a href="SDL_PumpEvents.html">SDL_PumpEvents()</a>
\82ð
\8cÄ
\82ñ
\82Å
\82¢
\82é.
\r
34 \82±
\82Ì
\8aÖ
\90\94\82Í
\83r
\83f
\83I
\83\82\81[
\83h
\82ð
\90Ý
\92è
\82µ
\82½
\83X
\83\8c\83b
\83h
\82Ì
\82Ý
\82Å
\8cÄ
\82×
\82é.
\r
37 <a href="SDL_PollEvent.html">SDL_PollEvent()</a>
\82Í
\83V
\83X
\83e
\83\80\83C
\83x
\83\93\83g
\82ð
\8eó
\90M
\82·
\82é
\96]
\82Ü
\82µ
\82¢
\95û
\96@
\82Å
\82 \82é.
\r
38 \82±
\82Ì
\8aÖ
\90\94\82ð
\8eg
\82¦
\82Î,
\83\81\83C
\83\93\83\8b\81[
\83v
\82Å
\83C
\83x
\83\93\83g
\82ª
\94
\90¶
\82·
\82é
\82Ì
\82ð
\91Ò
\82Â
\82±
\82Æ
\82È
\82
\8f\88\97\9d\82Å
\82«
\82é.
\r
41 \88ê
\94Ê
\93I
\82É
\82Í1
\83t
\83\8c\81[
\83\80\82²
\82Æ
\82É,
\92Ê
\8fí
\82Í
\83Q
\81[
\83\80\82Ì
\8fó
\91Ô
\82ð
\8dX
\90V
\82·
\82é
\91O
\82Ì
\8dÅ
\8f\89\82Ì
\8f\88\97\9d\82Æ
\82µ
\82Ä
\91S
\83C
\83x
\83\93\83g
\82ð
\8f\88\97\9d\82·
\82é:
\r
46 while (SDL_PollEvent(&event)) { //
\91S
\82Ä
\82Ì
\83C
\83x
\83\93\83g
\82ª
\83n
\83\93\83h
\83\8b\82³
\82ê
\82é
\82Ü
\82Å
\8al
\93¾
\82·
\82é!
\r
47 //
\82±
\82±
\82Å
\83C
\83x
\83\93\83g
\82ð
\8f\88\97\9d\82·
\82é
\r
49 //
\82±
\82±
\82Å
\95Ê
\82Ì
\8f\88\97\9d(
\95`
\89æ
\82È
\82Ç)
\82ð
\8ds
\82¤
\r
54 <h2>
\83o
\81[
\83W
\83\87\83\93</h2>
\r
56 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
57 <a href="SDL_GetEventFilter.html">SDL_GetEventFilter</a><br>
\r
58 <a href="SDL_PeepEvents.html">SDL_PeepEvents</a><br>
\r
59 <a href="SDL_PushEvent.html">SDL_PushEvent</a><br>
\r
60 <a href="SDL_SetEventFilter.html">SDL_SetEventFilter</a><br>
\r
61 <a href="SDL_WaitEvent.html">SDL_WaitEvent</a><br>
\r
62 <a href="SDL_WaitEventTimeout.html">SDL_WaitEventTimeout</a><br>
\r
63 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
64 <a href="https://wiki.libsdl.org/SDL_PollEvent">SDL_PollEvent - SDL Wiki</a>
\r