Commit Graph

2313 Commits

Author SHA1 Message Date
Ryan C. Gordon
c8c0e07da9 Add XInput support to Xcode project (untested!). 2008-09-17 08:24:51 +00:00
Ryan C. Gordon
5b27f96366 Some cleanups on the new XInput code.
One or two things got moved around, but largely this is hooked up correctly
 in the Unix configure system now: it can be dynamically loaded and fallback
 gracefully if not available, or libXi can be directly linked to libSDL.

XInput support can be --disable'd from the configure script, too (defaults to
 enabled).

Please note that while the framework is in place to gracefully fallback, the
 current state of the source requires XInput. We'll need to adjust a few
 things still to correct this.
2008-09-17 08:20:57 +00:00
Ryan C. Gordon
83e289b238 Removed zap_ptr hack from Bugzilla #602...it was incorrect.
(The actual bug was in SDL code removed from the 1.3 codebase.)
2008-09-15 20:48:51 +00:00
Sam Lantinga
258a2014c7 Almost got this compiling on Cygwin32, just needs DirectInput 7 2008-09-15 08:41:03 +00:00
Sam Lantinga
e6e45a547d Updated Visual C++ build 2008-09-15 07:34:36 +00:00
Sam Lantinga
6dfa39cc32 more more! 2008-09-15 06:49:23 +00:00
Sam Lantinga
e384f9cb8e Yet more math... 2008-09-15 06:48:41 +00:00
Sam Lantinga
80988b9d30 Whoops, missed a file... 2008-09-15 06:46:23 +00:00
Sam Lantinga
6e802db3f0 Expanded the libm support and put it into a separate directory. 2008-09-15 06:33:23 +00:00
Sam Lantinga
b94b3e7baa 2008-09-15 05:14:11 +00:00
Ryan C. Gordon
539aad42ea Merged r4087:4088 from branches/SDL-1.2: missing semicolon. 2008-09-15 05:09:45 +00:00
Sam Lantinga
458f7b5b0c indent 2008-09-15 04:32:36 +00:00
Sam Lantinga
c5c81ebf59 http://sources.redhat.com/ml/newlib/2002/msg00230.html
Stephen L Moshier wrote:
>
> pow(x,y) returns 0 when x is very close to -1.0 and y is very large.
> The following test program prints
>
> pow(1.0000000000000002e+00 4.5035996273704970e+15) = 2.7182818284590455e+00
> pow(-1.0000000000000002e+00 4.5035996273704970e+15) =0.0000000000000000e+00
> pow(9.9999999999999978e-01 4.5035996273704970e+15) = 3.6787944117144222e-01
> pow(-9.9999999999999978e-01 4.5035996273704970e+15) = 0.0000000000000000e+00
>
> which is incorrect for the negative arguments raised to an odd integer
> power.
>
> -----
> double pow (double, double);
>
> int
> main ()
> {
>   double x, y, z;
>
>   x = 1.0 + pow (2.0, -52.0);
>   y = 1.0 + pow (2.0, 52.0);
>   z = pow (x, y);
>   printf ("pow(%.16e %.16e) = %.16e\n", x, y, z);
>   x = -x;
>   z = pow (x, y);
>   printf ("pow(%.16e %.16e) = %.16e\n", x, y, z);
>   x = 1.0 - pow (2.0, -52.0);
>   z = pow (x, y);
>   printf ("pow(%.16e %.16e) = %.16e\n", x, y, z);
>   x = -x;
>   z = pow (x, y);
>   printf ("pow(%.16e %.16e) = %.16e\n", x, y, z);
> }
> -----
>
> Here is a patch for newlib/libm/math/epow.c:

Patch checked in and duplicated for ef_pow.c.  Thanks.

-- Jeff J.
2008-09-15 04:31:30 +00:00
Ryan C. Gordon
3b3a1b8cdf Merged r4082:4083 from branches/SDL-1.2: sparc64 crash fix. 2008-09-08 07:38:41 +00:00
Darren Alton
242cd3897b Fixes to the NDS sprite2 test. Illustrates partially working texture-as-sprite functionality. 2008-09-06 04:31:34 +00:00
Darren Alton
6fb0102145 Initial work for NDS haptic support. 2008-09-06 00:10:16 +00:00
Edgar Simo
1e595453ac Allow testing haptic devices by index. 2008-09-04 13:43:39 +00:00
Holmes Futrell
2f926dac88 Added SDL_GL_RETAINED_BACKING attribute to SDL_GLattr 2008-09-02 20:27:47 +00:00
Holmes Futrell
c6aae19257 Serves a similar purpose as SDL_opengl.h, except for OpenGLES. 2008-09-02 20:22:05 +00:00
Holmes Futrell
916349a04f Added support for OpenGL ES renderer 2008-09-02 20:19:45 +00:00
Holmes Futrell
0de9882579 Ran GNU indent on file 2008-09-02 20:11:06 +00:00
Holmes Futrell
32c4f213db Rolling back changes to revision 4071 ... made some mistakes, will try merging work again. 2008-09-02 20:05:33 +00:00
Holmes Futrell
f69769dfa3 Added retained backing attribute, reference to UIKit renderer 2008-09-02 19:53:56 +00:00
Holmes Futrell
449f371859 This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer. 2008-09-02 02:44:45 +00:00
Holmes Futrell
850aff64b6 Added OpenGL ES support 2008-09-02 02:27:06 +00:00
Holmes Futrell
7aae720160 These files are similar in purpose and structure as SDL_renderer_gl.c and SDL_renderer_gl.h, except they use OpenGL ES 1.1 for rendering. 2008-09-02 00:37:04 +00:00
Sam Lantinga
72d3929fca Fixed a bunch of compile warnings on Mac OS X 2008-09-01 16:04:20 +00:00
Sam Lantinga
0ddab56d41 Date: Sun, 31 Aug 2008 17:53:59 +0200
From: Couriersud
Subject: Re: Updated DirectFB driver for SDL1.3

attached is a patch which brings the directfb driver in line with
current svn. In addition:

* driver now is in line with the structure of the X11 driver.
  This adds a couple of files.
* driver now supports relative mouse movements
2008-08-31 16:04:32 +00:00
Sam Lantinga
708f4c7ac5 indent 2008-08-31 16:03:55 +00:00
Sam Lantinga
9c4b835e49 Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS
by Darren Alton, mentored by Sam Lantinga
2008-08-27 15:10:03 +00:00
Szymon Wilczek
5d823facd5 Many mouse and tablet linux test file added 2008-08-27 13:37:19 +00:00
Edgar Simo
2ba47a0dc2 Fix for mingw compilation by Alam. 2008-08-26 11:50:37 +00:00
Edgar Simo
fffbd1a1d1 Changed spaces to tabs. 2008-08-26 11:40:37 +00:00
Edgar Simo
3f882c94bb svn:ignore files generated by xcode. 2008-08-26 11:27:30 +00:00
Edgar Simo
a9a0df07e8 Update to xcode to include haptic subsystem stuff by Alam. 2008-08-26 11:18:34 +00:00
Edgar Simo
37efd9020c Missing an include. 2008-08-26 11:17:16 +00:00
Sam Lantinga
a7f2971180 Fixed Visual Studio compilation problems 2008-08-26 07:34:49 +00:00
Sam Lantinga
9c7284cdda Fixed crash when tablet isn't detected properly 2008-08-26 07:34:23 +00:00
Sam Lantinga
3b22c14a63 Dynamically load wintab32.dll 2008-08-26 06:03:48 +00:00
Sam Lantinga
ea7abca18f indent 2008-08-26 05:57:41 +00:00
Sam Lantinga
19d99d4cfc Added Wacom API headers.
FIXME: Dynamically load the Wacom API functions from wintab32.dll
2008-08-26 05:26:28 +00:00
Sam Lantinga
bfe61733da Couriersud fixed bug #603
Using the following sequence

SDL_Init(..:)
SDL_CreateWindow(..., SDL_WINDOW_OPENGL)
SDL_DestroyWindow
SDL_CreateWindow(..., SDL_WINDOW_OPENGL)

SDL will crash in X11_GL_GetVisual. This is due to the fact that
during SDL_DestroyWindow X11_GL_Shutdown was called because the last window
has been closed.

On the next call to SDL_CreateWindow the library is still loaded and only the
memory is reinitialized. Function pointers such as gl_data->glXChooseVisual
will not be reinitialized.

Consequently, SDL will crash due to a NULL pointer access.

The attached patch corrects the behaviour.
2008-08-26 02:47:26 +00:00
Sam Lantinga
38b73b01d9 indent. *sigh* 2008-08-26 02:40:24 +00:00
Sam Lantinga
0cc551f0cd Date: Sun, 20 Jul 2008 22:34:37 +0200
From: Couriersud
Subject: Updated DirectFB driver for SDL1.3

please find attached a patch for an updated directfb driver for SDL1.3.
It does now
- properly supported the new input api.
- send unicode text events
- support directfb windows
- support multiple screens
- support hardware YUV scaling for the first YUV texture created.
- support hardware scaling for textures.
- properly interpret streaming access
- support software opengl if one manages to install the mesa directfb
driver (broken/not broken in mesa svn)

Within bugzilla (http://bugzilla.libsdl.org/show_bug.cgi?id=603) there
is another patch which fixes a crash due to GL context creation.

Kind regards,

couriersud
2008-08-26 02:32:45 +00:00
Sam Lantinga
f74840152b Fixed compile errors for audio resampling. I'm not sure how this got missed... 2008-08-26 02:26:18 +00:00
Edgar Simo
f8a242d31e Merged force_feedback_branch r4042: unbuildability of dummy haptic driver with some configurations. 2008-08-25 20:51:03 +00:00
Szymon Wilczek
92d9759a5f Removed unneccesary code lines. Fixed mousename bug. Added lacking code in mousebutton 2008-08-25 18:02:14 +00:00
Edgar Simo
14e01ef127 Merge of force feedback branch r4039. 2008-08-25 17:34:58 +00:00
Sam Lantinga
a13381a54a Final merge of Google Summer of Code 2008 work...
Audio Ideas - Resampling and Pitch Shifting
by Aaron Wishnick, mentored by Ryan C. Gordon
2008-08-25 15:08:59 +00:00
Edgar Simo
4220687185 Merging another last minute fix from force feedback branch (r4036) 2008-08-25 10:14:21 +00:00