OSDN Git Service

SDL_EventState 関連項目(関数)にSDL_GetEventStateを追加 https://wiki.libsdl.org/SDL_EventState...
[sdl2referencejp/sdl2referencejp.git] / SDL_GetKeyboardState.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="CategoryKeyboard.html" title="1\82Â\8fã">
9 <title>SDL_GetKeyboardState</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="CategoryKeyboard.html">\83L\81[\83{\81[\83h</a> - SDL_GetKeyboardState
13 <hr>
14 <h1>SDL_GetKeyboardState</h1>
15 \83L\81[\83{\81[\83h\82Ì\8fó\91Ô\82ð\93¾\82é
16 <h2>\8d\\95¶</h2>
17 <code>const Uint8* SDL_GetKeyboardState(int* numkeys)</code>
18 <h2>\88ø\90\94</h2>
19 <table border="1" summary="SDL_GetKeyboardState">
20 <tr><td>numkeys</td><td>NULL\82Å\82È\82¢\82Æ\82«, \96ß\82µ\82½\94z\97ñ\82Ì\92·\82³\82ª\91ã\93ü\82³\82ê\82é</td></tr>
21 </table>
22 <h2>\96ß\82è\92l</h2>
23 \83L\81[\8fó\91Ô\82Ì\94z\97ñ\82Ö\82Ì\83|\83C\83\93\83^\82ð\96ß\82·.
24 \92l\82ª1\82Ì\82Æ\82«\89\9f\82³\82ê\82Ä\82¢\82Ä, 0\82Ì\82Æ\82«\89\9f\82³\82ê\82Ä\82¢\82È\82¢.
25 \94z\97ñ\82Ì\93Y\82¦\8e\9a\82Í<a href="SDL_Scancode.html">SDL_Scancode</a>\82Å\82 \82é.
26 \96ß\82³\82ê\82½\83|\83C\83\93\83^\82ÍSDL\93à\95\94\82Ì\94z\97ñ\82Ö\82Ì\83|\83C\83\93\83^\82Å\82 \82é.
27 \83A\83v\83\8a\83P\81[\83V\83\87\83\93\82Ì\8eÀ\8ds\92\86\82Í\8fí\82É\97L\8cø\82Å, \8cÄ\82Ñ\8fo\82µ\91¤\82Í\89ð\95ú\82·\82é\95K\97v\82Í\82È\82¢.
28 <h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>
29 <p>
30 <code>
31 <pre>
32 const Uint8 *state = SDL_GetKeyboardState(NULL);
33 if (state[SDL_SCANCODE_RETURN]) {
34     printf("&lt;RETURN&gt; \82ª\89\9f\82³\82ê\82½\n");
35 }
36 if (state[SDL_SCANCODE_RIGHT] &amp;&amp; state[SDL_SCANCODE_UP]) {
37     printf("\89E\82Æ\8fã\82ª\89\9f\82³\82ê\82½\n");
38 }
39 </pre>
40 </code>
41 </p>
42 <h2>\8fÚ\8d×</h2>
43 <p>
44 \83\81\83\82: <a href="SDL_PumpEvents.html">SDL_PumpEvents()</a>\82Å\82±\82Ì\8fó\91Ô\82Í\8dX\90V\82³\82ê\82é.
45 </p>
46 <p>
47 \83\81\83\82\82±\82Ì\8aÖ\90\94\82Í\91S\82Ä\82Ì\83C\83x\83\93\83g\82ð\8f\88\97\9d\82µ\82½\8cã\82É\8fó\91Ô\82ð\8al\93¾\82·\82é.
48 \82æ\82Á\82Ä, \82à\82µ\83C\83x\83\93\83g\82ð\8f\88\97\9d\82·\82é\91O\82É\83L\81[\82â\83{\83^\83\93\82ð\89\9f\82µ\82½\82è\97£\82µ\82½\82è\82·\82é\82Æ, <a href="SDL_GetKeyboardState.html">SDL_GetKeyboardState()</a>\82Å\82Í\89\9f\82³\82ê\82½\83L\81[\82ð\92m\82é\82±\82Æ\82ª\82Å\82«\82È\82¢.
49 </p>
50 <p>
51 \83\81\83\82\82±\82Ì\8aÖ\90\94\82Í\83V\83t\83g\83L\81[\82Ì\8fó\91Ô\82ð\8dl\97\82µ\82È\82¢.
52 </p>
53 <h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>
54 <a href="SDL_PumpEvents.html">SDL_PumpEvents</a><br>
55 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>
56 <a href="https://wiki.libsdl.org/SDL_GetKeyboardState">SDL_GetKeyboardState - SDL Wiki</a>
57 <hr>
58 </body>
59 </html>