Sam Lantinga
7fa84f6a78
Re-added the 3DNow! and AltiVec instruction support.
2011-02-22 21:44:36 -08:00
Sam Lantinga
a971987a27
Update the cursor correctly when it enters and leaves the window.
2011-02-21 23:45:48 -08:00
Sam Lantinga
ad0a084dbe
Actually set the cursor! :)
2011-02-21 23:10:00 -08:00
Sam Lantinga
1fafd8d8a4
Simplified the X11 window creation
2011-02-21 22:52:31 -08:00
Sam Lantinga
958603adb9
The OpenGL test window shouldn't be visible.
2011-02-21 22:52:07 -08:00
Sam Lantinga
c34217eac2
Don't automatically send minimized and maximized events, it's up to the windowing system to decide what to do with them.
2011-02-21 22:51:44 -08:00
Sam Lantinga
3de1129815
Clear the hidden flag when shown and the shown flag when hidden.
2011-02-21 22:50:15 -08:00
Sam Lantinga
22a78ea9c2
Simplified Windows window creation.
2011-02-21 22:27:19 -08:00
Sam Lantinga
79f564f37a
Fixed compiler warnings
2011-02-21 22:26:59 -08:00
Sam Lantinga
f3c377a8f2
Simplified and unified the window creation process a little.
2011-02-21 22:03:39 -08:00
Sam Lantinga
f225c427f8
We can defer window creation.
...
Added documentation for why we need an SDLView
2011-02-21 21:32:11 -08:00
Sam Lantinga
afb7a380ef
Fixed compiler warning
2011-02-21 20:35:44 -08:00
Sam Lantinga
b860c07c84
Added disabled preferences menu option so it looks more like other application menus.
2011-02-21 20:34:22 -08:00
Sam Lantinga
2294e6ddb0
Implemented cursor support and SDL_WarpMouseInWindow() on Mac OS X
2011-02-21 17:15:50 -08:00
Sam Lantinga
73b17999c1
Implemented Cocoa_SetWindowIcon(), added SDL_ConvertSurfaceFormat()
2011-02-21 16:45:23 -08:00
Sam Lantinga
891ea5b7e5
We still want the delegate functionality for windowShouldClose()
2011-02-21 15:25:49 -08:00
Sam Lantinga
4c8858b49b
Do error checking in SDL_GetDisplayForWindow()
2011-02-21 15:08:36 -08:00
Sam Lantinga
65c20a99ce
SDL still supports older iPod Touch and first generation iPhones.
2011-02-21 11:04:27 -08:00
Sam Lantinga
008bb00d2b
Fixed the responder chain for event handling, the listener fully handles mouse events - even in fullscreen mode.
...
The only reason we need a custom view is to handle right mouse down.
Implemented mouse grabbing, although it's kind of clunky right now. I'll be adding a relative mode that will be smoother soon.
2011-02-21 10:50:53 -08:00
Sam Lantinga
829c30596a
The valid mouse coordinates actually range from 0 to w-1 and h-1
2011-02-20 23:51:59 -08:00
Sam Lantinga
0bdae7b3a1
Reverted the experiment, it didn't work.
2011-02-20 23:51:31 -08:00
Sam Lantinga
575ff5fa0d
Experiment to try to account for source clipping
2011-02-20 23:16:58 -08:00
Sam Lantinga
187d10d92c
Fixed bug 1105 (SDL_GetMouseState returns wrong location upon window re-activation)
2011-02-20 20:49:31 -08:00
Sam Lantinga
5e0f2c8b85
Updated the template code
2011-02-20 19:15:00 -08:00
Sam Lantinga
53afa21ba1
Fixed the fireworks demo
2011-02-20 14:59:36 -08:00
Sam Lantinga
1c678cefe8
Fixed bug 1137, updated the keyboard demo with latest rendering API changes.
2011-02-20 14:22:27 -08:00
Sam Lantinga
437682d6dc
Fixed testgles on iOS (bug 1136)
2011-02-20 14:16:11 -08:00
Sam Lantinga
5d2d0a1574
Fixed compiler warning
2011-02-20 13:56:57 -08:00
Sam Lantinga
ba24205a8a
Fixed compiling on Mac OS X 10.4
2011-02-20 12:39:59 -08:00
Sam Lantinga
2788694b17
Simple rumble API for haptic
...
Edgar Simo 2011-02-20 10:27:52 PST
Adding patch that adds a simplified API for the haptic subsystem built ontop of
the "real one" for those who want simple rumble without jumping through hoops.
Adds 4 functions:
- extern DECLSPEC int SDLCALL SDL_HapticRumbleSupported(SDL_Haptic * haptic);
- extern DECLSPEC int SDLCALL SDL_HapticRumbleInit(SDL_Haptic * haptic);
- extern DECLSPEC int SDLCALL SDL_HapticRumblePlay(SDL_Haptic * haptic, float
strength, Uint32 length );
- extern DECLSPEC int SDLCALL SDL_HapticRumbleStop(SDL_Haptic * haptic);
Also provided is test/testrumble.c which does test this.
This has all been tested on linux and has worked, but due to being built ontop
of the other haptic API it should work on all OS the same.
2011-02-20 10:54:44 -08:00
Sam Lantinga
a0a3c805a2
Added a revision number for easy compile-time tests.
2011-02-20 10:42:51 -08:00
Sam Lantinga
c963d8f53b
Untested fix for bug 946 (SDL_HapticIndex returns 0 for all devices)
...
Edgar Simo 2011-02-20 09:02:31 PST
Linux uses fname, which is the name of the device path like for example
/dev/input/event3 so it shouldn't have the issue. However I can confirm that it
looks like haptic->index never gets properly set on windows. Have to look at
mac os x also. I'll see if I can fix it real quick now.
2011-02-20 09:28:13 -08:00
Sam Lantinga
d72eb6eedc
Reset the viewport since we're stretching to the entire window.
2011-02-20 09:24:02 -08:00
Sam Lantinga
8d5c5d31ab
Linker and deployment target fixes for the test programs.
2011-02-19 23:39:04 -08:00
Sam Lantinga
13c5239a36
Added OpenGL state caching for decent speed improvement.
2011-02-19 21:51:21 -08:00
Sam Lantinga
d098d4f399
SDL works on older iPod Touch and first generation iPhones running iOS 3.1.3.
2011-02-19 21:51:03 -08:00
Sam Lantinga
2b98447805
Fixed linking the demos
2011-02-19 21:35:35 -08:00
Sam Lantinga
1994fb2f46
Yes, it compiles now.
2011-02-19 16:41:01 -08:00
Sam Lantinga
dda4a8e368
Fixed warning on Mac OS X 10.4
2011-02-19 14:27:16 -08:00
Sam Lantinga
8223c4bf6f
Autogenerated full mask checks for pixel format match
2011-02-19 14:19:15 -08:00
Sam Lantinga
b8b0cce2e0
We have the correct window, we don't have to search for it, duh. :)
2011-02-19 11:26:49 -08:00
Sam Lantinga
3296f115b7
Added missing log debug function
2011-02-19 11:23:56 -08:00
Sam Lantinga
664f75eeff
Add assertions to the default API set.
2011-02-19 11:23:41 -08:00
Sam Lantinga
402ac229d0
update-revision is still phony. :)
2011-02-18 11:23:25 -08:00
Sam Lantinga
6ec7646870
Added a better way to include build rules in the Makefile
...
Cleaned up dependencies on generating SDL_revision.h
Fixed 'make install' if you are not building from a Mercurial repository
2011-02-18 11:19:34 -08:00
Sam Lantinga
594e403a0f
Whoops, the format parameter was off the page.
2011-02-18 09:30:09 -08:00
Sam Lantinga
6b2b174db0
The file is actually SDL_config.h now.
2011-02-17 19:00:29 -08:00
Sam Lantinga
147196ba05
Zero streaming textures to reduce confusion.
...
(See mailing list message with subject "Streaming textures not properly initialized?")
2011-02-17 18:58:43 -08:00
Sam Lantinga
b898d2680a
Don't remove the pseudo-generated headers because this command might be run from the repo directory and it confuses people, especially if they have no way of regenerating SDL_revision.h :)
2011-02-17 18:55:56 -08:00
Sam Lantinga
573fa3a100
Fixed make install
2011-02-17 18:54:11 -08:00