Ryan C. Gordon
91ec2b0c3b
Linux: Implemented sysfs-based version of SDL_GetPowerInfo().
...
Fixes Bugzilla #2938 .
2015-06-03 13:11:28 -07:00
Sam Lantinga
56b58afdbe
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Alex Szpakowski
49d1803fa6
Mac: Use CoreFoundation headers instead of Carbon headers, in GetPowerInfo code.
2015-05-16 12:05:42 -03:00
Alex Szpakowski
f2452bba77
Merged default into iOS-improvements
...
--HG--
branch : iOS-improvements
2015-01-15 01:15:24 -04:00
Ryan C. Gordon
de88474dda
Initial merge of Emscripten port!
...
With this commit, you can compile SDL2 with Emscripten
( http://emscripten.org/ ), and make your SDL-based C/C++ program
into a web app.
This port was due to the efforts of several people, including: Charlie Birks,
Sathyanarayanan Gunasekaran, Jukka Jylänki, Alon Zakai, Edward Rudd,
Bruce Mitchener, and Martin Gerhardy. (Thanks, everyone!)
--HG--
extra : rebase_source : 97af74c8a5121e926ebe89f123536b5dd6681695
2014-12-18 00:19:52 -05:00
Alex Szpakowski
383f56a9c1
Added missing autorelease pool blocks in UIKit backend code. Fixes memory leak issues, especially in SDL_video.
...
--HG--
branch : iOS-improvements
2014-07-29 00:36:12 -03:00
Sam Lantinga
53d9d2c232
Added annotations to help code analysis tools
...
CR: Bruce Dawson
2014-06-04 10:56:56 -07:00
David Ludwig
eb8fe3f2a3
Added a missing file related to WinRT power management/reporting.
...
--HG--
extra : rebase_source : 2ddf850c0e7c9eb95a6a661edb562e7b731c4aee
2014-03-14 01:36:05 -04:00
David Ludwig
7ba3100244
Fixed various build and runtime errors when using WinRT with VS2012.
2014-03-12 11:57:15 -04:00
Ryan C. Gordon
2d5bf23169
s/iPhoneOS/iOS
2014-02-17 11:47:54 -05:00
Ryan C. Gordon
7a997f59a9
Corrected battery percentage on iOS (thanks, Felix!).
...
Fixes Bugzilla #2397 .
2014-02-17 11:46:23 -05:00
Sam Lantinga
d7940a513e
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
Ryan C. Gordon
82edee6971
Make internal SDL sources include SDL_internal.h instead of SDL_config.h
...
The new header will include SDL_config.h, but allows for other global stuff.
--HG--
extra : rebase_source : ddf4a4c0dc2c554b98c82700798f343cd91b16e3
2013-11-24 23:56:17 -05:00
Ryan C. Gordon
30c46bacc8
Renamed things named after BeOS to be named after Haiku instead.
...
--HG--
rename : src/audio/baudio/SDL_beaudio.cc => src/audio/haiku/SDL_haikuaudio.cc
rename : src/audio/baudio/SDL_beaudio.h => src/audio/haiku/SDL_haikuaudio.h
rename : src/filesystem/beos/SDL_sysfilesystem.cc => src/filesystem/haiku/SDL_sysfilesystem.cc
rename : src/joystick/beos/SDL_bejoystick.cc => src/joystick/haiku/SDL_haikujoystick.cc
rename : src/loadso/beos/SDL_sysloadso.c => src/loadso/haiku/SDL_sysloadso.c
rename : src/main/beos/SDL_BApp.h => src/main/haiku/SDL_BApp.h
rename : src/main/beos/SDL_BeApp.cc => src/main/haiku/SDL_BeApp.cc
rename : src/main/beos/SDL_BeApp.h => src/main/haiku/SDL_BeApp.h
rename : src/power/beos/SDL_syspower.c => src/power/haiku/SDL_syspower.c
rename : src/timer/beos/SDL_systimer.c => src/timer/haiku/SDL_systimer.c
rename : src/video/bwindow/SDL_BWin.h => src/video/haiku/SDL_BWin.h
rename : src/video/bwindow/SDL_bclipboard.cc => src/video/haiku/SDL_bclipboard.cc
rename : src/video/bwindow/SDL_bclipboard.h => src/video/haiku/SDL_bclipboard.h
rename : src/video/bwindow/SDL_bevents.cc => src/video/haiku/SDL_bevents.cc
rename : src/video/bwindow/SDL_bevents.h => src/video/haiku/SDL_bevents.h
rename : src/video/bwindow/SDL_bframebuffer.cc => src/video/haiku/SDL_bframebuffer.cc
rename : src/video/bwindow/SDL_bframebuffer.h => src/video/haiku/SDL_bframebuffer.h
rename : src/video/bwindow/SDL_bkeyboard.cc => src/video/haiku/SDL_bkeyboard.cc
rename : src/video/bwindow/SDL_bkeyboard.h => src/video/haiku/SDL_bkeyboard.h
rename : src/video/bwindow/SDL_bmodes.cc => src/video/haiku/SDL_bmodes.cc
rename : src/video/bwindow/SDL_bmodes.h => src/video/haiku/SDL_bmodes.h
rename : src/video/bwindow/SDL_bopengl.cc => src/video/haiku/SDL_bopengl.cc
rename : src/video/bwindow/SDL_bopengl.h => src/video/haiku/SDL_bopengl.h
rename : src/video/bwindow/SDL_bvideo.cc => src/video/haiku/SDL_bvideo.cc
rename : src/video/bwindow/SDL_bvideo.h => src/video/haiku/SDL_bvideo.h
rename : src/video/bwindow/SDL_bwindow.cc => src/video/haiku/SDL_bwindow.cc
rename : src/video/bwindow/SDL_bwindow.h => src/video/haiku/SDL_bwindow.h
extra : rebase_source : afd5a42647878e283dbee3a666cef2214f0e7941
2013-11-14 11:51:24 -05:00
Sam Lantinga
367ffcc3af
Added a macro SDL_TICKS_PASSED() to correctly compare two 32-bit tick values.
...
Went through the code and used the macro and fixed a couple places that were using incorrect timestamp comparisons.
2013-10-20 20:42:55 -07:00
Sam Lantinga
0cb6385637
File style cleanup for the SDL 2.0 release
2013-05-18 14:17:52 -07:00
Philipp Wiesemann
20a48b079c
Added missing vi lines.
2013-05-10 21:14:13 +02:00
Sam Lantinga
3afbe992d5
Removed Nintendo DS support since nobody has volunteered to maintain it for over a year.
2013-03-17 09:44:58 -07:00
Captain Lex
47dac69dc7
Add PSP support
2013-03-17 20:07:02 +08:00
Sam Lantinga
a1b447a13a
Added license to Android power implementation
2013-02-16 13:33:58 -08:00
Sam Lantinga
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
f380ecb137
Removed executable bit from source files
2012-09-27 14:35:28 -07:00
Sam Lantinga
260faacb11
Added missing Android source that was supposed to go with changeset 64a6297a8b93
...
Thank you buildbot!
2012-09-23 01:54:30 -07:00
Sam Lantinga
82b0ec31cd
Fixed bug 1606 - SDL does not implement SDL_GetPowerInfo() for Android.
...
Philipp Wiesemann 2012-09-22 05:26:11 PDT
currently SDL (HG) does not implement the power management functionality of
SDL_GetPowerInfo() for Android.
I attached a patch which tries to implement this functionality (JNI only, API
5). It supports plugged state and battery percent return values but not
remaining seconds (which are not available on Android).
2012-09-23 01:37:44 -07:00
Ryan C. Gordon
5c732d6324
Removed Windows CE support from SDL 2.0.
...
It's a long-dead platform, and we don't have any way to build for, test, or
maintain it, so there's no sense in doing acrobatics to support it.
If you need Windows CE support, use SDL 1.2. If you need Windows Phone support,
send SDL 2.0 patches for the newer Windows Mobile platform.
2012-09-15 10:59:39 -04:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Sam Lantinga
ad2a21d404
Lots of fixes importing SDL source wholesale into a new iOS project
...
--HG--
rename : src/libm/math.h => src/libm/math_libm.h
2011-10-31 05:56:58 -04:00
Ryan C. Gordon
bc13816375
Fixed a whole slew of compiler warnings that -Wall exposed.
2011-10-13 01:08:30 -04:00
Ryan C. Gordon
a90884b482
Removed some FIXMEs (Nathan's changes were, in fact, correct).
2011-09-15 23:55:36 -04:00
Nathan Heisey
569fcd280c
Should compile now (fixed typos(?))
2011-07-14 17:58:47 +00:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
b4497865bd
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
...
I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c
--HG--
rename : src/SDL_android.cpp => src/core/android/SDL_android.cpp
rename : src/SDL_android.h => src/core/android/SDL_android.h
2011-01-24 21:20:30 -08:00
Sam Lantinga
10b8372bd3
Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
2011-01-24 15:46:11 -08:00
Ryan C. Gordon
c236844aac
Implemented SDL power APIs for iPhoneOS.
2010-04-30 00:39:31 -04:00
Sam Lantinga
4d3df8b3e3
Fixed bug #926
...
Updated copyright to LGPL version 2.1 and year 2010
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404453
2010-01-24 21:10:53 +00:00
Sam Lantinga
232c747269
Removed outdated Dreamcast support
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403813
2009-09-19 07:21:22 +00:00
Sam Lantinga
76d2bc3e7f
Removed outdated OS/2 support
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403810
2009-09-19 06:43:45 +00:00
Ryan C. Gordon
6924cd9e8a
Moved hardcoding of "/proc/apm" elsewhere.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403676
2009-06-30 06:27:08 +00:00
Ryan C. Gordon
fc45904c3c
Linux /proc/apm: handle hex and decimal (and octal!) values.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403675
2009-06-30 06:26:02 +00:00
Ryan C. Gordon
090a6d4f81
Linux /proc/acpi: check for ac_adapter states, other cleanup.
...
Still not tested, though!
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403674
2009-06-30 05:44:00 +00:00
Ryan C. Gordon
0fef127841
Removed stub for Linux /sys/power processing.
...
Apparently /sys/power doesn't expose battery information at this time.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403673
2009-06-30 05:27:11 +00:00
Ryan C. Gordon
3bcb033219
Power: First shot at Linux /proc/acpi/battery support.
...
Untested, not even tried to compile yet.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403672
2009-06-30 03:50:30 +00:00
Sam Lantinga
d03a7700eb
indent
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403645
2009-06-10 13:34:20 +00:00
Bob Pendleton
372f9b063f
Fixed some typos and added a couple of includes. All were need to get SDL_power to compile on Linux.
...
Sam, you might want to check to see that the spellings I picked are the spellings you wanted.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403632
2009-06-08 19:24:38 +00:00
Ryan C. Gordon
2af9ddbafd
BeOS support for power subsystem.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403631
2009-06-07 22:44:59 +00:00
Ryan C. Gordon
a5b5f691d9
Initial work on power subsystem for SDL 1.3.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403628
2009-06-07 06:06:35 +00:00