Mercurial > sdl-ios-xcode
annotate docs/man3/SDL_CreateCond.3 @ 872:e7be95d758e8
Date: Fri, 05 Mar 2004 16:08:01 +0000
From: Alan Swanson
Subject: Re: [SDL] Fatal signal when initiaize with USB joystick on 2.6.2 kern
On Fri, 2004-03-05 at 15:09, Sam Lantinga wrote:
> > Fred, how does the attached patch work for you? Do all your axes work?
>
> I think you meant the two lines to be reversed.
> I checked a more robust version of this into CVS. Fred, can you see if
> it works?
You've misread the code. :-/
For coef[0] and coef[1], it is (values[2]+values[1]) / 2 and then add
or subtract values[4] to the answer.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 06 Mar 2004 02:58:06 +0000 |
parents | e5bc29de3f0a |
children | 546f7c1eb755 |
rev | line source |
---|---|
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
1 .TH "SDL_CreateCond" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference" |
0 | 2 .SH "NAME" |
3 SDL_CreateCond\- Create a condition variable | |
4 .SH "SYNOPSIS" | |
5 .PP | |
6 \fB#include "SDL\&.h" | |
7 #include "SDL_thread\&.h" | |
8 .sp | |
9 \fBSDL_cond *\fBSDL_CreateCond\fP\fR(\fBvoid\fR); | |
10 .SH "DESCRIPTION" | |
11 .PP | |
12 Creates a condition variable\&. | |
13 .SH "EXAMPLES" | |
14 .PP | |
15 .nf | |
16 \f(CWSDL_cond *cond; | |
17 | |
18 cond=SDL_CreateCond(); | |
19 \&. | |
20 \&. | |
21 /* Do stuff */ | |
22 | |
23 \&. | |
24 \&. | |
25 SDL_DestroyCond(cond);\fR | |
26 .fi | |
27 .PP | |
28 .SH "SEE ALSO" | |
29 .PP | |
30 \fI\fBSDL_DestroyCond\fP\fR, \fI\fBSDL_CondWait\fP\fR, \fI\fBSDL_CondSignal\fP\fR | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
31 ...\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00 |