comparison docs/man3/SDL_JoystickOpen.3 @ 181:e5bc29de3f0a

Updated from the SDL Documentation Project
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Sep 2001 02:41:09 +0000
parents 55f1f1b3e27d
children 546f7c1eb755
comparison
equal deleted inserted replaced
180:578815880307 181:e5bc29de3f0a
1 .TH "SDL_JoystickOpen" "3" "Sun 10 Jun 2001, 19:41" "SDL" "SDL API Reference" 1 .TH "SDL_JoystickOpen" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
2 .SH "NAME" 2 .SH "NAME"
3 SDL_JoystickOpen\- Opens a joystick for use\&. 3 SDL_JoystickOpen\- Opens a joystick for use\&.
4 .SH "SYNOPSIS" 4 .SH "SYNOPSIS"
5 .PP 5 .PP
6 \fB#include "SDL\&.h" 6 \fB#include "SDL\&.h"
26 { 26 {
27 printf("Opened Joystick 0 27 printf("Opened Joystick 0
28 "); 28 ");
29 printf("Name: %s 29 printf("Name: %s
30 ", SDL_JoystickName(0)); 30 ", SDL_JoystickName(0));
31 printf("Number of Axes: %s 31 printf("Number of Axes: %d
32 ", SDL_JoystickNumAxes(joy)); 32 ", SDL_JoystickNumAxes(joy));
33 printf("Number of Buttons: %s 33 printf("Number of Buttons: %d
34 ", SDL_JoystickNumButtons(joy)); 34 ", SDL_JoystickNumButtons(joy));
35 printf("Number of Balls: %s 35 printf("Number of Balls: %d
36 ", SDL_JoystickNumBalls(joy)); 36 ", SDL_JoystickNumBalls(joy));
37 } 37 }
38 else 38 else
39 printf("Couldn\&'t open Joystick 0 39 printf("Couldn\&'t open Joystick 0
40 "); 40 ");
46 .fi 46 .fi
47 .PP 47 .PP
48 .SH "SEE ALSO" 48 .SH "SEE ALSO"
49 .PP 49 .PP
50 \fI\fBSDL_JoystickClose\fP\fR 50 \fI\fBSDL_JoystickClose\fP\fR
51 ...\" created by instant / docbook-to-man, Sun 10 Jun 2001, 19:41 51 ...\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00