Commit Graph

860 Commits

Author SHA1 Message Date
Laurent Gomila
8621e45960 Implemented global inputs (sf::Keyboard, sf::Mouse, sf::Joystick) and removed the event-based sf::Input.
Window::WaitEvent now works with joystick events as well.
Added Event::JoystickConnected and Event::JoystickDisconnected.
Added Window::GetCursorPosition.
2011-07-04 08:21:40 +02:00
Laurent Gomila
5469eaa8c0 Added an assert in Thread::Wait() if the thread tries to wait for itself 2011-06-14 17:49:33 +02:00
Laurent Gomila
d497401e3a Reverted changes in the Win32/ThreadImpl (didn't compile on MinGW and Windows < Vista) 2011-06-14 08:09:32 +02:00
Laurent Gomila
e065b95db6 Fixed links in the documentation main page 2011-06-13 18:07:01 +02:00
Laurent Gomila
48e30ea0e3 Made the behaviour of Thread::Wait consistent across implementations when called from its owner thread 2011-06-12 14:08:54 +02:00
Laurent Gomila
b0ebca9d29 Minor fix in UdpSocket::Send(Packet) 2011-06-12 13:14:50 +02:00
Laurent Gomila
0dc5003969 Fixed warning in GlxContext constructor 2011-06-11 18:51:43 +02:00
Laurent Gomila
75e07d63d3 Fixed error in FindSFML.cmake when parsing SFML 1.x Config.hpp for version number 2011-06-11 12:04:52 +02:00
Laurent Gomila
175cddee58 UdpSocket::Send(Packet) is now limited to UdpSocket::MaxDatagramSize, so that data is never split into multiple datagrams, which removes a lot of potential major problems 2011-06-11 11:28:43 +02:00
Laurent Gomila
79d5217c42 Minor fix in sf::Text 2011-06-09 08:37:25 +02:00
Laurent Gomila
df61292f65 Made sf::Mutex recursive on Unix, the behaviour is now consistent across platforms 2011-05-31 23:31:25 +02:00
Laurent Gomila
f0ed4ba446 Removed forgotten debug stuff from the "shader" example 2011-05-31 23:12:52 +02:00
Laurent Gomila
d938899f5c Window::SetCursorPosition now triggers MouseMoved events 2011-05-30 18:56:49 +02:00
Marco Antognini
0449e74dc3 Add Xcode 4 templates (issue #13) 2011-05-29 17:25:04 +02:00
Laurent Gomila
67c498dde3 Changed the STATIC_STD_LIBS CMake option to FALSE by default (matches the default compilers' settings) 2011-05-28 14:28:22 +02:00
Laurent Gomila
7bf0bdf161 Updated sfPacket_CanRead in CSFML 2011-05-26 07:47:58 +02:00
Laurent Gomila
94ab420dd3 Implemented the sf::Packet to bool conversion using the safe-bool idiom 2011-05-25 20:45:16 +02:00
Laurent Gomila
43d4d0bb28 Fixed last commit 2011-05-25 07:38:18 +02:00
Laurent Gomila
1526d09701 Changed Packet::operator bool() to Packet::operator void*(), to avoid inappropriate implicit conversions 2011-05-24 22:10:13 +02:00
Laurent Gomila
1a59b9291e Minor fix in documentation 2011-05-23 07:38:49 +02:00
Laurent Gomila
e4c6c30e0b Times in SFML are now Uint32 milliseconds instead of float seconds
Added the sf::Uint64 and sf::Int64 types
2011-05-19 08:19:42 +02:00
Marco Antognini
c1ce16f4d6 Improved SetCursorPosition on Mac (fixes issue #46) 2011-05-18 21:49:45 +02:00
Laurent Gomila
6383f0c800 Minor change in shared library naming on Linux 2011-05-16 08:00:30 +02:00
Laurent Gomila
04ae896457 Added the STATIC_STD_LIBS option to CSFML makefiles 2011-05-16 07:57:41 +02:00
Laurent Gomila
effc31327b Changed the FORCE_STATIC_VCRT to STATIC_STD_LIBS, made it available for MinGW/gcc and set it to TRUE by default 2011-05-16 00:00:00 +02:00
Marco Antognini
0e826d8dec Fixed shader examples 2011-05-15 13:37:29 +02:00
Laurent Gomila
0f2fb0e2f6 Fixed static build with MinGW/gcc (was broken after the previous update of external libraries) 2011-05-15 11:07:17 +02:00
Laurent Gomila
3490d57344 Minor modifications in FindGLEW and FindSndFile 2011-05-14 22:17:47 +02:00
Laurent Gomila
7498b5bc27 Added initialization of the shared context (fixes issue #43) 2011-05-13 20:48:50 +02:00
Laurent Gomila
e952f945a0 Updates MinGW external libraries to match their headers (fixes issue #42) 2011-05-13 19:21:44 +02:00
Laurent Gomila
67455e1a16 Updated the code example of the documentation main page 2011-05-11 23:15:58 +02:00
Laurent Gomila
a4f6e915a0 Removed the sf::Randomizer class from the system module 2011-05-10 08:16:22 +02:00
Laurent Gomila
e3c8fd6586 Fixed crash in Text.DisplayedString (get) in SFML.Net (fixes issue #16) 2011-05-09 23:23:08 +02:00
Marco Antognini
816a36ea0d Add OS X implementation of joysticks 2011-05-08 12:44:02 +02:00
Laurent Gomila
2f9a47b463 Minor fixes in documentation related to joysticks 2011-05-06 14:03:15 +02:00
Laurent Gomila
49c0208b2e The version returned by Window::GetSettings() is now the actual version of the context 2011-05-04 22:35:15 +02:00
Marco Antognini
6eac4256f3 Fixed issue 9 (update opengl version of a context on OS X) 2011-04-27 22:44:55 +02:00
Marco Antognini
becf51572f updated OS X port to support sf::Event::KeyEvent::System. 2011-04-27 13:53:59 +02:00
Laurent Gomila
ede01df778 Added the sf::Event::KeyEvent::System member (implements feature #8) 2011-04-26 21:58:03 +02:00
Laurent Gomila
eac841ec71 Added explicit conversions between different types of sf::Vector2, sf::Vector3 and sf::Rect (implements feature #31) 2011-04-26 19:20:24 +02:00
Laurent Gomila
ade8cb8771 Restored smoothing on fonts 2011-04-26 18:56:56 +02:00
Laurent Gomila
17971ca198 Fixed FindSFML.cmake 2011-04-18 18:19:57 +02:00
Marco Antognini
71469f1815 Update SFContext according to the new contexts system 2011-04-16 20:13:03 +02:00
Marco Antognini
9e2e349043 Minor comment update 2011-04-16 20:11:51 +02:00
Marco Antognini
690d4a3eff Improved process setup code design 2011-04-16 20:10:47 +02:00
Laurent Gomila
ad79328a70 Fixed recursive mutex lock in GlContext::Cleanup() 2011-04-15 18:14:35 +02:00
Laurent Gomila
6e04a02b07 Improved FindSFML.cmake to handle configurations in a better way (fixes issue #27) 2011-04-14 22:08:19 +02:00
Laurent Gomila
fd0d18f12e Fixed the crash that happened when destroying then creating again a render target 2011-04-13 23:16:20 +02:00
Laurent Gomila
df6874273a Renamed Window::GetEvent to PollEvent 2011-04-11 18:20:21 +02:00
Laurent Gomila
bacb698f1a Minor fix in readme.txt 2011-04-11 17:31:39 +02:00