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_UserEvent</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_UserEvent
\r
14 <h1>SDL_UserEvent</h1>
\r
15 \83A
\83v
\83\8a\83P
\81[
\83V
\83\87\83\93\92è
\8b`
\83C
\83x
\83\93\83g
\82Ì
\8fî
\95ñ
\82Ì
\8d\
\91¢
\91Ì
\r
16 <h2>
\83t
\83B
\81[
\83\8b\83h</h2>
\r
17 <table border="1" summary="SDL_UserEvent">
\r
18 <tr><td>Uint32</td><td>type</td><td><a href="SDL_RegisterEvents.html">SDL_RegisterEvents()</a>
\82Å
\93¾
\82ç
\82ê
\82½
\92l</td></tr>
\r
19 <tr><td>Uint32</td><td>timestamp</td><td>
\83C
\83x
\83\93\83g
\82Ì
\83^
\83C
\83\80\83X
\83^
\83\93\83v</td></tr>
\r
20 <tr><td>Uint32</td><td>windowID</td><td>
\83t
\83H
\81[
\83J
\83X
\82Ì
\82 \82é
\83E
\83B
\83\93\83h
\83E (
\89Â
\94\
\82È
\82ç)</td></tr>
\r
21 <tr><td>Sint32</td><td>code</td><td>
\83\86\81[
\83U
\92è
\8b`
\82Ì
\83C
\83x
\83\93\83g
\83R
\81[
\83h</td></tr>
\r
22 <tr><td>void*</td><td>data1</td><td>
\83\86\81[
\83U
\92è
\8b`
\82Ì
\8fî
\95ñ
\82Ö
\82Ì
\83|
\83C
\83\93\83^</td></tr>
\r
23 <tr><td>void*</td><td>data2</td><td>
\83\86\81[
\83U
\92è
\8b`
\82Ì
\8fî
\95ñ
\82Ö
\82Ì
\83|
\83C
\83\93\83^</td></tr>
\r
25 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
29 Uint32 myEventType = SDL_RegisterEvents(1);
\r
30 if (myEventType != ((Uint32)-1)) {
\r
33 event.type = myEventType;
\r
34 event.user.code = my_event_code;
\r
35 event.user.data1 = significant_data;
\r
36 event.user.data2 = 0;
\r
37 SDL_PushEvent(&event);
\r
44 <a href="SDL_UserEvent.html">SDL_UserEvent</a>
\82Í<a href="SDL_Event.html">SDL_Event</a>
\82Ì
\83\81\83\93\83o
\82Å
\82 \82é.
\r
45 \82±
\82Ì
\83C
\83x
\83\93\83g
\82Í
\93Á
\8eê
\82Å, SDL
\82É
\82æ
\82Á
\82Ä
\94
\90¶
\82³
\82ê
\82é
\82±
\82Æ
\82Í
\8c\88\82µ
\82Ä
\82È
\82,
\83\86\81[
\83U
\82É
\82æ
\82Á
\82Ä
\82Ì
\82Ý
\94
\90¶
\82³
\82ê
\82é.
\r
46 \83C
\83x
\83\93\83g
\82Í<a href="SDL_PushEvent.html">SDL_PushEvent()</a>
\82Å
\83L
\83\85\81[
\82É
\93ü
\82ê
\82é
\82±
\82Æ
\82ª
\82Å
\82«
\82é.
\r
47 \8d\
\91¢
\91Ì
\82Ì
\8fî
\95ñ
\82Í
\8a®
\91S
\82É
\8dì
\90¬
\8eÒ
\82ª
\90Ý
\92è
\82Å
\82«
\82é.
\r
48 \97B
\88ê
\97v
\8b\81\82³
\82ê
\82é
\82Ì
\82Í, <a href="SDL_RegisterEvents.html">SDL_RegisterEvents()</a>
\82Å
\93¾
\82½type
\82Ì
\92l
\82Å
\82 \82é.
\r
50 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\97ñ
\8b\93\91Ì)</h2>
\r
51 <a href="SDL_EventType.html">SDL_EventType</a><br>
\r
52 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
53 <a href="SDL_RegisterEvents.html">SDL_RegisterEvents</a><br>
\r
54 <a href="SDL_PushEvent.html">SDL_PushEvent</a><br>
\r
55 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
56 <a href="https://wiki.libsdl.org/SDL_UserEvent">SDL_UserEvent - SDL Wiki</a><br>
\r