SDL_JoystickName.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_JoystickName" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_JoystickName- Get joystick name&.
- .SH "SYNOPSIS"
- .PP
- fB#include "SDL&.h"
- .sp
- fBconst char *fBSDL_JoystickNamefPfR(fBint indexfR);
- .SH "DESCRIPTION"
- .PP
- Get the implementation dependent name of joystick&. The fBindexfR parameter refers to the N&'th joystick on the system&.
- .SH "RETURN VALUE"
- .PP
- Returns a char pointer to the joystick name&.
- .SH "EXAMPLES"
- .PP
- .PP
- .nf
- f(CW/* Print the names of all attached joysticks */
- int num_joy, i;
- num_joy=SDL_NumJoysticks();
- printf("%d joysticks found
- ", num_joy);
- for(i=0;i<num_joy;i++)
- printf("%s
- ", SDL_JoystickName(i));fR
- .fi
- .PP
- .SH "SEE ALSO"
- .PP
- fIfBSDL_JoystickOpenfPfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00