Commit graph

2909 commits

Author SHA1 Message Date
Sam Lantinga
97c8173820 Date: Thu, 16 Jan 2003 13:48:31 +0200
From: "Mike Gorchak"
Subject: All QNX patches

whole patches concerning QNX. Almost all code has been rewritten by Julian
and me. Added initial support for hw overlays in QNX and many many others
fixes.

P.S. This patches has been reviewed by Dave Rempel from QSSL and included in
SDL 1.2.5 distribution, which coming on 3rd party CD for newest 6.2.1
version of QNX, which will be available soon.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40572
2003-01-20 01:38:37 +00:00
Sam Lantinga
cfca6d1cc7 From: David Hedbor
Subject: Qtopia patches (input grabbing and iconify)

Ok, here's a patch that adds support for SDL_WM_GrabInput (default
state is "ungrabbed") and SDL_WM_IconifyWindow. Also has some other
tweaks such as taking additional steps to clean up when exiting
(bypassing certain bugs in some versions of Qtopia and/or OPIE) and it
also maps Key_F33 to Key_Return (this is the Zaurus 'ok' key).

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40568
2003-01-20 01:08:20 +00:00
Sam Lantinga
879224b6c7 Enable the glXGetProcAddressARB code (fixes problems with NVidia drivers)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40567
2003-01-20 00:25:28 +00:00
Sam Lantinga
f8edfec204 David MacCormack fixed a bug in window sizing with Windows menus
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40566
2003-01-20 00:17:01 +00:00
Ryan C. Gordon
f39381e3e9 Massive Quartz input enhancements from Darrell Walisser. His email:
Enclosed is a patch that addresses the following:

--Various minor cleanups.
Removed dead/obsolete code, made some style cleanups

--Mouse Events
Now keep track of what button(s) were pressed so we know when to send
the mouse up event. This fixes the case where the mouse is dragged
outside of the game window and released (in which case we want to send
the mouse up event even though the mouse is outside the game window).

--Input Grabbing
Here is my take on the grabbing situation, which is the basis for the
new implementation.

There are 3 grab states, ungrabbed (UG), visible (VG), and invisible
(IG). Both VG and IG keep the mouse constrained to the window and
produce relative motion events. In VG the cursor is visible (duh), in
IG it is not. In VG, absolute motion events also work.

There are 6 actions that can affect grabbing:

1. Set Fullscreen/Window (F/W). In fullscreen, a visible grab should do
nothing. However, a fullscreen visible grab can be treated just like a
windowed visible grab, which is what I have done to help simplify
things.

2. Cursor hide/show (H/S). If the cursor is hidden when grabbing, the
grab is an invisible grab. If the cursor is visible, the grab should
just constrain the mouse to the window.

3. Input grab/ungrab(G/U). If grabbed, the cursor should be confined to
the window as should the keyboard input. On Mac OS X, the keyboard
input is implicitly grabbed by confining the cursor, except for
command-tab which can switch away from the application. Should the
window come to the foreground if the application is deactivated and
grab input is called? This isn't necessary in this implementation
because the grab state will be asserted upon activation.

Using my notation, these are all the cases that need to be handled
(state + action = new state).

UG+U = UG
UG+G = VG or IG, if cursor is visible or not
UG+H = UG
UG+S = UG

VG+U = UG
VG+G = VG
VG+H = IG
VG+S = VG

IG+U = UG
IG+G = IG
IG+H = IG
IG+S = VG

The cases that result in the same state can be ignored in the code,
which cuts it down to just 5 cases.

Another issue is what happens when the app loses/gains input focus from
deactivate/activate or iconify/deiconify. I think that if input focus
is ever lost (outside of SDL's control), the grab state should be
suspended and the cursor should become visible and active again. When
regained, the cursor should reappear in its original location and/or
grab state. This way, when reactivating the cursor is still in the same
position as before so apps shouldn't get confused when the next motion
event comes in. This is what I've done in this patch.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40564
2002-12-27 20:52:41 +00:00
Sam Lantinga
8e0540e5cf Date: Sat, 14 Dec 2002 13:33:05 -0500
From: Darrell Walisser
Subject: Re: crash in SDL / OSX

> Yes, compose keys and other "dead" keys should have unicode 0.
> As a hack, if you get multiple composed characters, you can send the
> sequence with a valid unicode and a keysym of 0.  It's because of
> things like this that I'm separating the key and char events in SDL 2.0

I've done this and here's the patch.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40562
2002-12-15 09:09:31 +00:00
Ryan C. Gordon
e2cbed54eb Moved some cleanup stuff to QZ_VideoQuit() from QZ_UnsetVideoMode()...fixes
cursor hiding, etc when calling SDL_SetVideoMode() multiple times. Fixed by
 Darrell Walisser.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40561
2002-12-13 21:09:52 +00:00
Sam Lantinga
a31f0acba3 Fixed invalid memory access in DGA video driver (thanks ldb!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40560
2002-12-11 05:52:28 +00:00
Sam Lantinga
faab4adb3a Fixed left/right shift detection on Windows (thanks Mike!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40559
2002-12-11 05:47:32 +00:00
Sam Lantinga
cdde594dbc Updated Atari port for new system headers (thanks Patrice!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40558
2002-12-07 06:54:47 +00:00
Sam Lantinga
1a5622ba5c Fixed compile error if there is no X11 shared memory support.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40557
2002-12-07 06:51:03 +00:00
Sam Lantinga
e1ecdaaad4 From: Darrell Walisser
Subject: Re: [SDL] OS X and power save

Here ya go. This works just fine. One might complain that it doesn't
generate the event until after wake as completed (there is about 5
seconds between the screen coming up and the expose event), but I think
that's OK.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40556
2002-12-07 06:48:49 +00:00
Sam Lantinga
241cf39101 Linux joystick cleanups from Alan Swanson
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40555
2002-12-02 03:11:36 +00:00
Sam Lantinga
72f052bbbc There's a bug in the VC7 optimizer relating to the duff loop optimization
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40554
2002-12-02 02:40:58 +00:00
Sam Lantinga
180f7d626c *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40553
2002-12-02 02:35:58 +00:00
Sam Lantinga
2cd7450f7b Doh! Compile error if there was no X11 shared image support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40552
2002-12-02 01:47:03 +00:00
Sam Lantinga
dc970b9478 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40551
2002-12-02 01:10:20 +00:00
Sam Lantinga
f741db3f7d Open the ALSA devices in non-blocking mode (thanks Aleksey!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40548
2002-11-17 20:01:54 +00:00
Sam Lantinga
57f5a82852 Updated for DirectDB 0.9.15 (thanks Denis!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40547
2002-11-17 19:36:49 +00:00
Sam Lantinga
83cb8c4ace Save the full pathname for stdout.txt and stderr.txt
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40546
2002-11-17 19:30:44 +00:00
Sam Lantinga
9f15e5f2c2 Fixed bsd joystick detection ... again (thanks Wilbern)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40545
2002-11-17 19:03:05 +00:00
Sam Lantinga
5c63a69080 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40544
2002-11-17 18:59:10 +00:00
Sam Lantinga
4135293105 Support 1-bit alpha on surfaces passed to SDL_WM_SetIcon() (thanks Glenn!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40542
2002-11-17 17:55:45 +00:00
Sam Lantinga
bb1c6662b5 Greatly improved X11 DGA video speed (thanks Cezary!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40541
2002-11-09 06:20:46 +00:00
Sam Lantinga
994f095e2e Added MMX audio mixing code for gcc (thanks Stephane!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40540
2002-11-09 06:13:28 +00:00
Sam Lantinga
6083c21174 Fixed potential dropped events under DirectInput
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40537
2002-11-09 05:47:24 +00:00
Sam Lantinga
c78b556d00 Fixed alpha blending bug (thanks Glenn!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40536
2002-10-22 21:41:21 +00:00
Sam Lantinga
9e98e499b1 Return an error with color fills on less than 8 bpp surfaces.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40533
2002-10-15 05:22:50 +00:00
Sam Lantinga
d0b835b8ee Fixed joystick detection problem on Windows XP (thanks Maciej!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40532
2002-10-15 04:26:20 +00:00
Sam Lantinga
9735064647 Removed unused function declarations
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40529
2002-10-11 08:41:48 +00:00
Sam Lantinga
fef7027b52 Fixed mouse warp position bug with offset video modes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40528
2002-10-11 08:09:26 +00:00
Sam Lantinga
b749b25a06 Fixed a crash blitting RLE surfaces to RLE surfaces
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40527
2002-10-11 07:56:36 +00:00
Sam Lantinga
a4123bfdb2 Removed an unnecessary header
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40526
2002-10-11 07:55:22 +00:00
Sam Lantinga
e97f13eb3b Fixed windows event handling for ActiveX controls (thanks Huib-Jan!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40524
2002-10-08 16:25:23 +00:00
Sam Lantinga
e9ed754e4c *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40520
2002-10-07 15:36:32 +00:00
Sam Lantinga
3e7d6e349a Fixed compiler warning
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40519
2002-10-07 15:19:34 +00:00
Sam Lantinga
9a5eea0cf3 Fixed building timer code on Windows CE
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40518
2002-10-07 15:19:17 +00:00
Sam Lantinga
9c4b179504 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40516
2002-10-06 20:31:34 +00:00
Sam Lantinga
b34dca4014 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40515
2002-10-06 20:25:05 +00:00
Sam Lantinga
c7ef26ba7a *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40514
2002-10-06 18:47:20 +00:00
Sam Lantinga
7200c21d78 Added an environment variable SDL_HAS3BUTTONMOUSE for Quartz
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40512
2002-10-05 22:22:42 +00:00
Sam Lantinga
3ee2de057f Added initial support for Dreamcast (thanks HERO!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40510
2002-10-05 16:50:56 +00:00
Sam Lantinga
148a1a64f4 Fixed gamma correction in Atari video drivers (thanks Patrice!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40509
2002-10-05 16:27:56 +00:00
Sam Lantinga
291e8f9bf5 Atari joystick fixes contributed by Patrice Mandin
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40508
2002-10-05 16:27:29 +00:00
Sam Lantinga
1af95cab8a Fixed cursor resource leak in Windows (thanks Huib-Jan Imbens!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40507
2002-10-05 05:46:32 +00:00
Sam Lantinga
3d1ff0f23e *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40506
2002-10-05 05:44:09 +00:00
Sam Lantinga
605e7e0057 Fixed SDL_main.c on Windows CE with applications containing spaces in their names.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40505
2002-10-05 05:42:56 +00:00
Sam Lantinga
f4d9f8e59f Fixed memory overwrite in BSD joystick driver (thanks SUGIMOTO Sadahiro!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40504
2002-10-05 05:32:49 +00:00
Sam Lantinga
0a5479f0c8 Fixed mouse wheel events on MacOS X
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40503
2002-10-05 05:11:20 +00:00
Sam Lantinga
7b88c89815 Lots of cleanups by Darrell, added the ability to resize Cocoa windows.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40502
2002-10-05 05:07:57 +00:00