1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <meta name="keywords" content="Simple Directmedia Layer SDL2.0">
7 <link rel="top" href="index.html" title="
\83z
\81[
\83\80">
8 <link rel="parent" href="CategoryEvents.html" title="1
\82Â
\8fã">
9 <title>SDL_EventFilter</title>
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_EventFilter
14 <h1>SDL_EventFilter</h1>
15 A function definition to be used with SDL_AddEventWatch
16 <a href="SDL_AddEventWatch.html">SDL_AddEventWatch</a>
\82Å
\8eg
\97p
\82·
\82é
\8aÖ
\90\94\82Ì
\92è
\8b`
18 <code>int (*SDL_EventFilter)(void *userdata, SDL_Event *event)</code>
20 <table border="1" summary="SDL_EventFilter">
21 <tr><td>userdata</td><td>
\8c³
\82Ì<a href="SDL_AddEventWatch.html">SDL_AddEventWatch</a>
\82É
\93n
\82µ
\82½data</td></tr>
22 <tr><td>event</td><td>
\83C
\83x
\83\93\83g
\82ð
\95\
\82·<a href="SDL_Event.html">SDL_Event</a></td></tr>
26 \8cx
\8d\90:
\82±
\82Ì
\8aÖ
\90\94\82Í
\95Ê
\83X
\83\8c\83b
\83h
\82Å
\8eÀ
\8ds
\82³
\82ê
\82é
\82½
\82ß,
\89½
\82ð
\8ds
\82¤
\82Ì
\82©
\92\8d\88Ó
\82·
\82é
\82±
\82Æ!
29 \8aÖ
\90\94\82Ì
\96ß
\82è
\92l
\82Í
\96³
\8e\8b\82³
\82ê
\82é.
32 \82±
\82Ì
\83R
\81[
\83\8b\83o
\83b
\83N
\82Í,
\83\86\81[
\83U
\82ª<a href="SDL_PushEvent.html">SDL_PushEvent()</a>
\82Å
\88ø
\82«
\8bN
\82±
\82µ
\82½
\83C
\83x
\83\93\83g
\82É
\91Î
\82µ
\82Ä
\82à
\8cÄ
\82Î
\82ê
\82é.
33 \82µ
\82©
\82µ,
\96³
\8cø
\89»
\82³
\82ê
\82½
\83C
\83x
\83\93\83g, <a href="SDL_SetEventFilter.html">SDL_SetEventFilter()</a>
\82Ì
\83R
\81[
\83\8b\83o
\83b
\83N
\82Å
\83t
\83B
\83\8b\83^
\82³
\82ê
\82½
\83C
\83x
\83\93\83g,
\83\86\81[
\83U
\82ª<a href="SDL_PeepEvents.html">SDL_PeepEvents()</a>
\82Å
\88ø
\82«
\8bN
\82±
\82µ
\82½
\83C
\83x
\83\93\83g
\82É
\91Î
\82µ
\82Ä
\82Í
\8cÄ
\82Î
\82ê
\82È
\82¢.
35 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
39 int MyEventFunction(void *userdata, SDL_Event *event) {
40 // userdata
\82Æevent
\82ð
\8eQ
\8fÆ
\82µ
\82Ä
\8f\88\97\9d\82ð
\8ds
\82¤
42 return 0; //
\96ß
\82è
\92l
\82Í
\96³
\8e\8b\82³
\82ê
\82é
46 SDL_AddEventWatch(MyEventFunction, NULL);
50 <h2>
\83o
\81[
\83W
\83\87\83\93</h2>
52 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
53 <a href="SDL_AddEventWatch.html">SDL_AddEventWatch</a><br>
54 <a href="SDL_DelEventWatch.html">SDL_DelEventWatch</a><br>
55 <a href="SDL_SetEventFilter.html">SDL_SetEventFilter</a><br>
56 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
57 <a href="https://wiki.libsdl.org/SDL_EventFilter">SDL_EventFilter - SDL Wiki</a>