2283 Commits

Author SHA1 Message Date
Szymon Wilczek
e6faee6b2a Many mouse and tablet linux test file added
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403186
2008-08-27 13:37:19 +00:00
Edgar Simo
9b7084ebd4 Fix for mingw compilation by Alam.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403184
2008-08-26 11:50:37 +00:00
Edgar Simo
7c530667ee Changed spaces to tabs.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403183
2008-08-26 11:40:37 +00:00
Edgar Simo
bd6d9f3ba2 svn:ignore files generated by xcode.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403182
2008-08-26 11:27:30 +00:00
Edgar Simo
ff035aa8e4 Update to xcode to include haptic subsystem stuff by Alam.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403181
2008-08-26 11:18:34 +00:00
Edgar Simo
5001b4e35a Missing an include.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403180
2008-08-26 11:17:16 +00:00
Sam Lantinga
5e73fc7c16 Fixed Visual Studio compilation problems
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403179
2008-08-26 07:34:49 +00:00
Sam Lantinga
a4af7a72fe Fixed crash when tablet isn't detected properly
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403178
2008-08-26 07:34:23 +00:00
Sam Lantinga
a13b4b8736 Dynamically load wintab32.dll
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403177
2008-08-26 06:03:48 +00:00
Sam Lantinga
d9f99f5203 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403176
2008-08-26 05:57:41 +00:00
Sam Lantinga
3c232989ce Added Wacom API headers.
FIXME: Dynamically load the Wacom API functions from wintab32.dll

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403175
2008-08-26 05:26:28 +00:00
Sam Lantinga
4dd047e9c7 Couriersud fixed bug
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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403174
2008-08-26 02:47:26 +00:00
Sam Lantinga
4dd96455cc indent. *sigh*
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403173
2008-08-26 02:40:24 +00:00
Sam Lantinga
1127f31992 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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403172
2008-08-26 02:32:45 +00:00
Sam Lantinga
a1b6c39a96 Fixed compile errors for audio resampling. I'm not sure how this got missed...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403171
2008-08-26 02:26:18 +00:00
Edgar Simo
2d697eb0ad Merged force_feedback_branch r4042: unbuildability of dummy haptic driver with some configurations.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403170
2008-08-25 20:51:03 +00:00
Szymon Wilczek
96e1657806 Removed unneccesary code lines. Fixed mousename bug. Added lacking code in mousebutton
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403168
2008-08-25 18:02:14 +00:00
Edgar Simo
f3a0aca8ff Merge of force feedback branch r4039.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403167
2008-08-25 17:34:58 +00:00
Sam Lantinga
0eeb8c92b6 Final merge of Google Summer of Code 2008 work...
Audio Ideas - Resampling and Pitch Shifting
by Aaron Wishnick, mentored by Ryan C. Gordon

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403165
2008-08-25 15:08:59 +00:00
Edgar Simo
09f8ad29e2 Merging another last minute fix from force feedback branch (r4036)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403164
2008-08-25 10:14:21 +00:00
Sam Lantinga
b77fa81aa1 Merged last minute fixes from force feedback branch (r4031, r4033, r4034)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403162
2008-08-25 10:04:06 +00:00
Sam Lantinga
4fd9c25fe6 Final merge of Google Summer of Code 2008 work...
Force Feedback for SDL
by Edgar Simo, mentored by Ryan C. Gordon

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403159
2008-08-25 09:55:03 +00:00
Sam Lantinga
0aca811202 Fixed compile errors introduced during the merge refactoring
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403157
2008-08-25 08:50:37 +00:00
Sam Lantinga
6b4db38d91 Added missing X1/X2 button support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403156
2008-08-25 06:58:34 +00:00
Sam Lantinga
e7d72614c3 Final merge of Google Summer of Code 2008 work...
Many-mouse and tablet support
by Szymon Wilczek, mentored by Ryan C. Gordon

Everything concerning the project is noted on the wiki:
http://wilku.ravenlord.ws/doku.php?id=start

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403155
2008-08-25 06:33:00 +00:00
Sam Lantinga
95134b6d3c Missing keysym defines
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403154
2008-08-25 05:30:28 +00:00
Ryan C. Gordon
82e07e817d Testing Subversion commit RSS feed.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402812
2008-07-05 18:25:28 +00:00
Sam Lantinga
28506dbf31 Reverted Holmes' changes, they should be on the iphone branch
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402811
2008-07-05 16:15:44 +00:00
Holmes Futrell
2e2db9e30b disabled compile time assertion ... no 64 bit primitive types available on iPhone (it appears)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402780
2008-06-22 23:13:02 +00:00
Holmes Futrell
8a9bcd6686 Added iPhone OS (__IPHONEOS__) as a platform
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402779
2008-06-22 23:12:02 +00:00
Holmes Futrell
5ef7f8e2ea iPhone OS uses a custom main
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402778
2008-06-22 23:10:44 +00:00
Sam Lantinga
4409fa47e1 Fixed compiler warning
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402760
2008-05-26 12:56:10 +00:00
Sam Lantinga
1725937a2c Reverted revision 3416, fixing bug
http://bugzilla.libsdl.org/show_bug.cgi?id=589

I was going to add the current window to the OpenGL context info, but that
doesn't fix the case where you set the current context to NULL and then set
the current context to the same window it had before.

This also doesn't take into account changes to the window that might affect
the context, such as viewport changing or fullscreen/windowed mode changing.

Any ideas?

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402759
2008-05-26 12:43:37 +00:00
Sam Lantinga
e8f122166c Date: Wed, 7 May 2008 21:48:10 +0200
From: Christian Walther
Subject: SDL 1.3 Xcode projects

Here are my promised updates to the Xcode projects. They work as far
as I'm using them, but I have not tested them thoroughly, and there
may still be some cruft left. In particular, I haven't checked whether
the frameworks still work on older versions of Mac OS X (are we still
targeting 10.2?), and whether Altivec/SSE optimizations are properly
done. Of note: I incremented the framework version to B to enable SDL
1.2 and 1.3 to coexist in a single framework.

Let me know if you see any problems.

Greetings

   Christian

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402757
2008-05-08 05:06:24 +00:00
Sam Lantinga
8ba098b0e2 Updated Xcode project from Eric Wing
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402756
2008-05-02 14:55:08 +00:00
Sam Lantinga
c2bba66f46 So we don't forget to do this...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402748
2008-03-18 12:31:14 +00:00
Bob Pendleton
e27a71b3a7 ran make indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402747
2008-03-14 20:43:44 +00:00
Bob Pendleton
71656d10c7 re: bug#563. checking in some commented out trace code and a fix so that the in testalpha.c the background only flashes when alpha == 255. The problem that is being
fixed is caused by clearing SDL_COPY_RLE_COLORKEY without setting SDL_COPY_RLE_DESIRED in SDL_UnRELSurface.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402746
2008-03-14 18:17:49 +00:00
Bob Pendleton
d8da8f7c27 In testdyngl.c the event type was being anded (&) with SDL_KEYDOWN and if the result was none zero the program was quiting. This is very weird because it was
working earlier this week.

I added some more trace code to SDL_x11events.c

In SDL_X11opengl.c I modified SDL_GL_GetSwapInterval() so that it returns a pretty good value even if you have the SGI swap extension instead of the MESA swap
extension. I just saved the value you set and return it too you.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402744
2008-03-07 23:57:15 +00:00
Bob Pendleton
196aaf9bc6 oops, need to comment out some debug code.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402743
2008-03-07 21:01:54 +00:00
Bob Pendleton
b7ecabf860 Next version of internationalized input for X11. On my machine (famous last words :-) with a US English keyboard and locale I can compose ` and e and get a text
input event with the character è. You still get the keypress keyrelease events for the individual keys that go into composing the character.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402742
2008-03-07 20:54:11 +00:00
Bob Pendleton
c19af725fa more valgrind errors fixed. Plus I ran make indent which changed a few files.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402741
2008-03-07 17:20:37 +00:00
Bob Pendleton
b315d5379d Fixed many valgrind errors. But, I broke testdyngl.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402740
2008-03-06 23:07:02 +00:00
Bob Pendleton
011c8c6dc3 Fixing valgrind errors.
One of the error was the result of an unitended recursive call to X11_GL_LoadLibrary which was also fixed.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402739
2008-03-06 17:08:10 +00:00
Bob Pendleton
e6d4abc63e SetupWindowData in SDL_X11window.c was realloc()ing the display window list and incrementing numwindows even though those are being updated in functions that call
this function. The result is that it is possible to get the same window added to the list twice.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402738
2008-03-04 23:09:28 +00:00
Bob Pendleton
b8101a644e Deleted a call to X__PumpEvents at the end of X11_GL_InitExtensions(). This function is being called from SDL_RecreateWindow at a point when the numwindows value in
is incorrect. The result is that an illegal access is being made in X_PumpEvents when it tries to look up the windows ID of the source of an event. Taking out that
call does not seem to have any effect on the testgl. But, I would be happy if someone else took a look at this problem and found a fix higher up the stack.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402737
2008-03-01 20:34:36 +00:00
Sam Lantinga
ff06a9b069 Now the program will process all events and then terminate. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402731
2008-02-23 05:10:40 +00:00
Bob Pendleton
ba6d728feb HandleEvent() returns done each time it is called. If done was set to 0 the program should quit, but because done is not checked until *all* events are handled a
following event can reset done to 1 and prevent the program from terminating when told to. I fixed the while loop that handles events to check for the state of done
after handling each event. That could leave some events unhandled when the program exits, but it ensures that the program will exit.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402730
2008-02-20 23:27:33 +00:00
Sam Lantinga
1af0c41561 Windows also remaps the numeric keypad... grrr
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402729
2008-02-11 21:06:32 +00:00
Sam Lantinga
f520bc7066 Checkout directly to the SDL 1.3 folder
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402728
2008-02-11 20:26:22 +00:00