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="CategoryGameController.html" title="1
\82Â
\8fã">
\r
9 <title>SDL_GameControllerEventState</title>
\r
12 <a href="index.html">
\96Ú
\8e\9f</a> - <a href="ApiByCategory.html">API(
\8b@
\94\
\95Ê)</a> - <a href="CategoryGameController.html">
\83Q
\81[
\83\80\83R
\83\93\83g
\83\8d\81[
\83\89\81[</a> - SDL_GameControllerEventState
\r
14 <h1>SDL_GameControllerEventState</h1>
\r
15 \83Q
\81[
\83\80\83R
\83\93\83g
\83\8d\81[
\83\89\81[
\82Ì
\83C
\83x
\83\93\83g
\82ð
\97L
\8cø
\81E
\96³
\8cø
\82É
\82·
\82é.
\r
17 <code>int SDL_GameControllerEventState(int state)</code>
\r
19 <table border="1" summary="SDL_GameControllerEventState">
\r
20 <tr><td>state</td><td>SDL_QUERY(-1), SDL_IGNORE(0), SDL_ENABLE(1)
\82Ì1
\82Â</td></tr>
\r
22 <h2>
\96ß
\82è
\92l</h2>
\r
23 \88ø
\90\94\82ª-1(SDL_QUERY)
\82Ì
\82Æ
\82«
\8c»
\8dÝ
\82Ì
\8fó
\91Ô
\82ð
\96ß
\82·.
\82»
\82ê
\88È
\8aO
\82Ì
\82Æ
\82«
\82Í
\88ø
\90\94\82Æ
\93¯
\82¶
\92l
\82ð
\96ß
\82·.
\r
24 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
28 printf("%d\n", SDL_GameControllerEventState(SDL_QUERY)); /* 1
\82ª
\95\
\8e¦
\82³
\82ê
\82é */
\r
29 printf("%d\n", SDL_GameControllerEventState(SDL_IGNORE)); /* 0
\82ª
\95\
\8e¦
\82³
\82ê
\82é */
\r
30 printf("%d\n", SDL_GameControllerEventState(SDL_QUERY)); /* 0
\82ª
\95\
\8e¦
\82³
\82ê
\82é */
\r
36 \83R
\83\93\83g
\83\8d\81[
\83\89\81[
\83C
\83x
\83\93\83g
\82ð
\96³
\8cø
\82É
\82µ
\82½
\8fê
\8d\87,
\83R
\83\93\83g
\83\8d\81[
\83\89\81[
\82Ì
\8fî
\95ñ
\82ª
\95K
\97v
\82È
\82Æ
\82«
\82Í<a href="SDL_GameControllerUpdate.html">SDL_GameControllerUpdate()</a>
\82ð
\8e©
\95ª
\82Å
\8cÄ
\82ñ
\82Å
\8fó
\91Ô
\82ð
\83`
\83F
\83b
\83N
\82·
\82é
\95K
\97v
\82ª
\82 \82é.
\r
39 -1, 0, 1
\88È
\8aO
\82Ì
\88ø
\90\94\82Í
\96³
\8cø
\82Å
\82 \82é.
\82»
\82Ì
\8fê
\8d\87\82Í
\88ø
\90\94\82Æ
\93¯
\82¶
\92l
\82ð
\96ß
\82·.
\r
41 <h2>
\83o
\81[
\83W
\83\87\83\93</h2>
\r
45 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
46 <a href="SDL_JoystickEventState.html">SDL_JoystickEventState</a><br>
\r
47 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
48 <a href="https://wiki.libsdl.org/SDL_GameControllerEventState">SDL_GameControllerEventState - SDL Wiki</a>
\r