OSDN Git Service

SDL_Rect サンプルコードを修正 コピー先のwとhは無視されるため0とした https://github.com/libsdl-org/sdlwiki/commit...
[sdl2referencejp/sdl2referencejp.git] / SDL_JoystickEventState.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\r
2 <html lang="ja-JP">\r
3 <head>\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="CategoryJoystick.html" title="1\82Â\8fã">\r
9 <title>SDL_JoystickEventState</title>\r
10 </head>\r
11 <body>\r
12 <a href="index.html">\96Ú\8e\9f</a> - <a href="ApiByCategory.html">API(\8b@\94\\95Ê)</a> - <a href="CategoryJoystick.html">\83W\83\87\83C\83X\83e\83B\83b\83N</a> - SDL_JoystickEventState\r
13 <hr>\r
14 <h1>SDL_JoystickEventState</h1>\r
15 \83W\83\87\83C\83X\83e\83B\83b\83N\83C\83x\83\93\83g\82ð\97L\8cø\81E\96³\8cø\82É\82·\82é\r
16 <h2>\8d\\95¶</h2>\r
17 <code>int SDL_JoystickEventState(int state)</code>\r
18 <h2>\88ø\90\94</h2>\r
19 <table border="1" summary="SDL_JoystickEventState">\r
20 <tr><td>state</td><td>SDL_QUERY(-1), SDL_IGNORE(0), SDL_ENABLE(1)\82Ì1\82Â</td></tr>\r
21 </table>\r
22 <h2>\96ß\82è\92l</h2>\r
23 \97L\8cø\82Ì\82Æ\82«1, \96³\8cø\82Ì\82Æ\82«0, \8e¸\94s\82Ì\82Æ\82«\95\89\82Ì\90\94\82Ì\83G\83\89\81[\83R\81[\83h\82ð\96ß\82·.\r
24 <a href="SDL_GetError.html">SDL_GetError()</a>\82Å\8fÚ\8d×\82ð\92m\82é\82±\82Æ\82ª\82Å\82«\82é.\r
25 <h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>\r
26 <p>\r
27 <code>\r
28 <pre>\r
29 printf("%d\n", SDL_JoystickEventState(SDL_QUERY));  /* 1\82ª\95\\8e¦\82³\82ê\82é */\r
30 printf("%d\n", SDL_JoystickEventState(SDL_IGNORE)); /* 0\82ª\95\\8e¦\82³\82ê\82é */\r
31 printf("%d\n", SDL_JoystickEventState(SDL_QUERY));  /* 0\82ª\95\\8e¦\82³\82ê\82é */\r
32 </pre>\r
33 </code>\r
34 </p>\r
35 <h2>\8fÚ\8d×</h2>\r
36 <p>\r
37 \83W\83\87\83C\83X\83e\83B\83b\83N\83C\83x\83\93\83g\82ª\96³\8cø\82Ì\82Æ\82«\83W\83\87\83C\83X\83e\83B\83b\83N\82Ì\8fó\91Ô\82ð\93¾\82é\82É\82Í, <a href="SDL_JoystickUpdate.html">SDL_JoystickUpdate()</a>\82ð\8e©\95ª\82Å\8cÄ\82Ñ, \8fó\91Ô\82ð\8eè\93®\82Å\83`\83F\83b\83N\82·\82é\95K\97v\82ª\82 \82é.\r
38 </p>\r
39 <p>\r
40 \83\81\83\82\83W\83\87\83C\83X\83e\83B\83b\83N\83C\83x\83\93\83g\82Í\97L\8cø\82Ì\82Ü\82Ü\82É\82µ\82Ä\82¨\82­\82±\82Æ\82ð\90\84\8f§\82·\82é.\r
41 </p>\r
42 <p>\r
43 \8cx\8d\90\82±\82Ì\8aÖ\90\94\82ð\8cÄ\82Ô\82Æ, SDL\83C\83x\83\93\83g\83L\83\85\81[\82Ì\8c»\8dÝ\82Ì\83C\83x\83\93\83g\82Í\91S\82Ä\8dí\8f\9c\82³\82ê\82é.\r
44 </p>\r
45 <h2>\83o\81[\83W\83\87\83\93</h2>\r
46 SDL 2.0.0\88È\8d~\r
47 <h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>\r
48 <a href="SDL_GameControllerEventState.html">SDL_GameControllerEventState</a><br>\r
49 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>\r
50 <a href="https://wiki.libsdl.org/SDL_JoystickEventState">SDL_JoystickEventState - SDL Wiki</a>\r
51 <hr>\r
52 </body>\r
53 </html>\r