Unix and Linux Discussions Tagged with printf |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
3,821 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
10,825 |
Shell Programming and Scripting |
|
|
|
5 |
6,599 |
Shell Programming and Scripting |
|
|
|
5 |
1,369 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,285 |
Shell Programming and Scripting |
|
|
|
5 |
1,915 |
Shell Programming and Scripting |
|
|
|
7 |
2,851 |
Shell Programming and Scripting |
|
|
|
2 |
1,718 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
5,806 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,592 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
4,177 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,005 |
Shell Programming and Scripting |
|
|
|
9 |
5,356 |
Shell Programming and Scripting |
|
|
|
2 |
2,332 |
Shell Programming and Scripting |
|
|
|
6 |
2,157 |
Shell Programming and Scripting |
|
|
|
4 |
2,669 |
Shell Programming and Scripting |
|
|
|
3 |
35,505 |
UNIX for Dummies Questions & Answers |
|
|
|
26 |
10,663 |
Shell Programming and Scripting |
|
|
|
8 |
14,174 |
AIX |
|
|
|
4 |
4,354 |
Shell Programming and Scripting |
|
|
|
3 |
3,989 |
Linux |
|
|
|
4 |
3,080 |
Programming |
|
|
|
6 |
6,480 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
1,452 |
Shell Programming and Scripting |
|
|
|
3 |
12,143 |
Shell Programming and Scripting |
|
|
|
10 |
8,785 |
Programming |
|
|
|
5 |
20,801 |
Shell Programming and Scripting |
|
|
|
4 |
3,351 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
9,846 |
Shell Programming and Scripting |
|
|
|
19 |
8,488 |
Shell Programming and Scripting |
|
|
|
2 |
7,081 |
Shell Programming and Scripting |
|
|
|
4 |
2,486 |
Programming |
|
|
|
4 |
2,609 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,062 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
10,026 |
Shell Programming and Scripting |
|
|
|
2 |
7,784 |
Shell Programming and Scripting |
|
|
|
1 |
3,616 |
Shell Programming and Scripting |
|
|
|
10 |
6,260 |
Shell Programming and Scripting |
|
|
|
3 |
6,668 |
Shell Programming and Scripting |
|
|
|
3 |
5,387 |
UNIX for Dummies Questions & Answers |
SDL_JoystickOpen(3) SDL API Reference SDL_JoystickOpen(3)
NAME
SDL_JoystickOpen- Opens a joystick for use.
SYNOPSIS
#include "SDL.h"
SDL_Joystick *SDL_JoystickOpen(int index);
DESCRIPTION
Opens a joystick for use within SDL. The index refers to the N'th joystick in the system. A joystick must be opened before it game be used.
RETURN VALUE
Returns a SDL_Joystick structure on success. NULL on failure.
EXAMPLES
SDL_Joystick *joy;
// Check for joystick
if(SDL_NumJoysticks()>0){
// Open joystick
joy=SDL_JoystickOpen(0);
if(joy)
{
printf("Opened Joystick 0
");
printf("Name: %s
", SDL_JoystickName(0));
printf("Number of Axes: %d
", SDL_JoystickNumAxes(joy));
printf("Number of Buttons: %d
", SDL_JoystickNumButtons(joy));
printf("Number of Balls: %d
", SDL_JoystickNumBalls(joy));
}
else
printf("Couldn't open Joystick 0
");
// Close if opened
if(SDL_JoystickOpened(0))
SDL_JoystickClose(joy);
}
SEE ALSO
SDL_JoystickClose
SDL
Tue 11 Sep 2001, 23:00 SDL_JoystickOpen(3)