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_GameControllerNameForIndex</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_GameControllerNameForIndex
\r
14 <h1>SDL_GameControllerNameForIndex</h1>
\r
15 \83Q
\81[
\83\80\83R
\83\93\83g
\83\8d\81[
\83\89\81[
\82Ì
\8eÀ
\91\95\82©
\82ç
\93¾
\82½
\96¼
\91O
\82ð
\93¾
\82é
\r
17 <code>const char* SDL_GameControllerNameForIndex(int joystick_index)</code>
\r
19 <table border="1" summary="SDL_GameControllerNameForIndex">
\r
20 <tr><td>joystick_index</td><td><a href="SDL_NumJoysticks.html">SDL_NumJoysticks()</a>
\8cÂ
\82Ü
\82Å
\82Ì
\83f
\83o
\83C
\83X
\82Ì
\94Ô
\8d\86</td></tr>
\r
22 <h2>
\96ß
\82è
\92l</h2>
\r
23 \83Q
\81[
\83\80\83R
\83\93\83g
\83\8d\81[
\83\89\81[
\82Ì
\8eÀ
\91\95\82©
\82ç
\93¾
\82½
\96¼
\91O
\82ð
\96ß
\82·.
\96¼
\91O
\82ª
\82È
\82¢
\82Ü
\82½
\82Íjoystick_index
\82ª
\94Í
\88Í
\8aO
\82Ì
\8fê
\8d\87NULL
\82ð
\96ß
\82·.
\r
24 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
28 for (int i = 0; i %lt; SDL_NumJoysticks(); ++i) {
\r
29 const char *name = SDL_GameControllerNameForIndex(i);
\r
31 printf("Joystick %i has game controller name '%s'\n", i, name);
\r
32 printf("
\83W
\83\87\83C
\83X
\83e
\83B
\83b
\83N %d
\82Í
\83Q
\81[
\83\80\83R
\83\93\83g
\83\8d\81[
\83\89\96¼ '%s'
\82ð
\8e\9d\82Â\n", i, name);
\r
34 printf("
\83W
\83\87\83C
\83X
\83e
\83B
\83b
\83N %d
\82É
\82Í
\83Q
\81[
\83\80\83R
\83\93\83g
\83\8d\81[
\83\89\96¼
\82ª
\82È
\82¢\n", i);
\r
42 \82±
\82Ì
\8aÖ
\90\94\82Í
\83R
\83\93\83g
\83\8d\81[
\83\89\82ð
\8aJ
\82
\91O
\82É
\8cÄ
\82×
\82é.
\r
45 device_index
\82Í<a href="SDL_JoystickOpen.html">SDL_JoystickOpen()</a>
\82Ì
\88ø
\90\94\82Ìjoystick_index
\82Æ
\93¯
\82¶
\82Å
\82 \82é.
\r
47 <h2>
\83o
\81[
\83W
\83\87\83\93</h2>
\r
51 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
52 <a href="SDL_GameControllerName.html">SDL_GameControllerName</a><br>
\r
53 <a href="SDL_GameControllerOpen.html">SDL_GameControllerOpen</a><br>
\r
54 <a href="SDL_IsGameController.html">SDL_IsGameController</a><br>
\r
55 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
56 <a href="https://wiki.libsdl.org/SDL_GameControllerNameForIndex">SDL_GameControllerNameForIndex - SDL Wiki</a>
\r