OSDN Git Service

SDL_HINT_RENDER_DRIVER metalを追加した https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER...
[sdl2referencejp/sdl2referencejp.git] / SDL_GetMouseState.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html lang="ja-JP">
3 <head>
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="CategoryMouse.html" title="1\82Â\8fã">
9 <title>SDL_GetMouseState</title>
10 </head>
11 <body>
12 <a href="index.html">\96Ú\8e\9f</a> - <a href="ApiByCategory.html">API(\8b@\94\\95Ê)</a> - <a href="CategoryMouse.html">\83}\83E\83X</a> - SDL_GetMouseState
13 <hr>
14 <h1>SDL_GetMouseState</h1>
15 \8c»\8dÝ\82Ì\83}\83E\83X\82Ì\8fó\91Ô\82ð\93¾\82é
16 <h2>\8d\\95¶</h2>
17 <code>Uint32 SDL_GetMouseState(int* x, int* y)</code>
18 <h2>\88ø\90\94</h2>
19 <table border="1" summary="SDL_GetMouseState">
20 <tr><td>x</td><td>\83t\83H\81[\83J\83X\82Ì\82 \82é\83E\83B\83\93\83h\83E\82©\82ç\82Ì\91\8a\91ÎX\8dÀ\95W\82ð\91ã\93ü\82·\82é\83|\83C\83\93\83^</td></tr>
21 <tr><td>y</td><td>\83t\83H\81[\83J\83X\82Ì\82 \82é\83E\83B\83\93\83h\83E\82©\82ç\82Ì\91\8a\91ÎY\8dÀ\95W\82ð\91ã\93ü\82·\82é\83|\83C\83\93\83^</td></tr>
22 </table>
23 <h2>\96ß\82è\92l</h2>
24 \8c»\8dÝ\82Ì\83{\83^\83\93\82Ì\83r\83b\83g\83}\83X\83N\82ð\96ß\82·
25 <h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>
26 <p>
27 <code>
28 <pre>
29 SDL_PumpEvents();
30 if(SDL_GetMouseState(NULL, NULL)&amp;SDL_BUTTON(1))
31     SDL_Log("\83}\83E\83X\83{\83^\83\931(\8d¶)\82ª\89\9f\82³\82ê\82½");
32 </pre>
33 </code>
34 </p>
35 <h2>\8fÚ\8d×</h2>
36 \8c»\8dÝ\82Ì\83{\83^\83\93\82Ì\8fó\91Ô\82Í, \96ß\82è\92l\82Ì\83r\83b\83g\83}\83X\83N\82Å, SDL_BUTTON(X)\83}\83N\83\8d\82Å\83`\83F\83b\83N\82Å\82«\82é (\92Ê\8fí\82ÍX=1\82ª\8d¶, 2\82ª\92\86\89\9b, 3\82ª\89E).
37 \82»\82µ\82Ä, \91I\91ð\82µ\82½\83t\83H\81[\83J\83X\82Ì\82 \82é\83E\83B\83\93\83h\83E\82©\82ç\82Ì\91\8a\91Î\8dÀ\95W\82Íx\82Æy\82É\91ã\93ü\82³\82ê\82é.
38 x\82Æy\82É\82ÍNULL\82ð\93n\82·\82±\82Æ\82ª\82Å\82«\82é.
39 <h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>
40 <a href="SDL_GetGlobalMouseState.html">SDL_GetGlobalMouseState</a><br>
41 <a href="SDL_GetRelativeMouseState.html">SDL_GetRelativeMouseState</a><br>
42 <a href="SDL_PumpEvents.html">SDL_PumpEvents</a><br>
43 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>
44 <a href="https://wiki.libsdl.org/SDL_GetMouseState">SDL_GetMouseState - SDL Wiki</a>
45 <hr>
46 </body>
47 </html>