Alex Szpakowski
06f80d5c08
Fixed undefined behaviour when love exceptions are converted into Lua errors (resolves issue #729 )
2013-09-05 23:17:29 -03:00
Alex Szpakowski
d3826aba9d
Improved thread safety of love.event.wait and love.event.push
2013-08-30 17:34:58 -03:00
Alex Szpakowski
eb052d99e8
Added love.keyboard.setKeyRepeat and love.keyboard.hasKeyRepeat (resolves issue #717 )
2013-08-29 03:20:27 -03:00
Alex Szpakowski
4fcf47a427
Renamed Joystick:getGUID to Joystick:getProductGUID for greater clarity
2013-08-28 04:21:08 -03:00
Alex Szpakowski
113ed1cfe7
Merged SDL2 changes from bartbes/love-experiments/SDL2 into default.
...
- Added love.system module, including clipboard functions.
- Added custom hardware cursors (love.mouse.newCursor, love.mouse.setCursor.)
- Revamped love.joystick:
-- added Joystick objects and moved love.joystick functions which operated on individual joysticks to methods on the Joystick objects.
-- Added love.joystick.getJoystick and love.joystick.getJoystickCount.
-- Added events for when joysticks are connected and disconnected.
-- Added 'Gamepad' methods to Joystick objects: Joystick:isGamepad, Joystick:getGamepadAxis, and Joystick:isGamepadDown. They're a common abstraction for xbox controller-like joystick across operating systems.
- Added monitor choosing support and "fullscreen desktop" mode to love.window.
- Moved unicode text input events to their own callback function (love.textinput), removed the key repeat functions from love.keyboard and made the second argument of love.keypressed a boolean saying whether the keypress was a repeat.
- liblove now works with love.window and love.graphics in OS X
2013-08-25 16:51:42 -03:00
Alex Szpakowski
295487165f
Unprintable ascii text (numbers 0-31 and 127 in decimal) is no longer sent to the unicode argument of love.keypressed
2013-07-24 02:44:36 -03:00
Alex Szpakowski
353e9b3b31
Fixed love.event.clear() (issue #666 )
2013-07-04 19:06:42 -03:00
Alex Szpakowski
084a52da10
Fixed window visibility events not always triggering properly
2013-06-29 20:19:06 -03:00
Alex Szpakowski
6281d60b8c
Fixed compilation in visual studio
2013-06-18 17:31:47 -03:00
Alex Szpakowski
621124ac28
love.keypressed's second argument is now a unicode character string instead of a unicode codepoint number.
2013-06-17 15:23:53 -03:00
Alex Szpakowski
66b9b46846
Removed the love.joystickball event callback function
2013-06-12 06:30:00 -03:00
Alex Szpakowski
6b7eb35d8a
Added love.visible(boolean visible) event callback
2013-06-11 20:15:55 -03:00
Bart van Strien
79d1a7a6ef
Add love.mousefocus (partial issue #120 ) temporary name (see issue #573 ) and it's waiting for an exposed love.window to get a check, too
2013-05-10 19:03:16 +02:00
Alex Szpakowski
d5aa807747
More internal code cleanup
2013-03-31 19:02:27 -03:00
Alex Szpakowski
6f67fbdfa7
Fixed a typo in joystick event code
2013-03-06 11:17:39 -04:00
Alex Szpakowski
3c8bc9ee9f
Merged bartbes/love-experiments/joystickevents into default
2013-03-05 13:59:45 -04:00
Alex Szpakowski
6b1222366d
Removed 'moved' suffix from new joystick callbacks
...
--HG--
branch : joystickevents
2013-03-05 12:31:11 -04:00
Alex Szpakowski
974d63124e
Removed redundant code in the event module
2013-03-04 19:05:57 -04:00
Alex Szpakowski
a844ac2389
Added love.joystickaxismoved, love.joystickballmoved, and love.joystickhatmoved callbacks
...
--HG--
branch : joystickevents
2013-03-04 18:49:25 -04:00
Bart van Strien
3d0c5761ce
Merge in default, update changelog
...
--HG--
branch : minor
2013-03-03 19:51:04 +01:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Bart van Strien
8867f6c329
Merge in default
...
--HG--
branch : minor
2012-10-14 17:23:35 +02:00
Bart van Strien
00ee547a1c
Make unknown keys map to "unknown" in love.keypressed, at least allowing
...
you to get the (correct) unicode arg. (issue #337 )
2012-08-03 15:51:43 +02:00
Bart van Strien
bddee1753b
Use a flags table for setMode now, implement resizable and borderless windows, and add resize event
...
Example setMode invocation: love.graphics.setMode(800, 600, {fullscreen = false, vsync = true, borderless = true})
t.screen.resizable and t.screen.borderless are available in love.conf
And love.resize(w, h) gets called if it exists on a resize event.
NOTE: love.handlers.resize(w, h) does the required setMode, but that does mean a visual reload
--HG--
branch : minor
2012-07-23 11:53:13 +02:00
Bart van Strien
399a6a6614
Merge in channels from love-experiments
...
Rewritten love.thread and changed communication
method from weird system before, to channels.
--HG--
branch : minor
2012-07-04 17:15:16 +02:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
rude
81c38e22d0
Applied the new style guidelines.
...
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Bart van Strien
51d4553b7d
Fix love.event.push/quit issues
2012-01-10 11:23:50 +01:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06:00
Bart van Strien
c707a4ca45
Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)
2011-12-24 01:10:40 +01:00
Bart van Strien
e0dcf55703
Make love.event.clear thread-safe, though it's only callable from the main thread (with SDL backend, anyway)
2011-12-23 12:16:36 +01:00
Bart van Strien
951d420db7
Eliminate more warnings
2011-12-20 21:02:59 +01:00
Bart van Strien
9fb63dc4b8
Make the new event sink thread-safe (hopefully) and make small usability fixes
2011-12-20 19:51:50 +01:00
Bart van Strien
d3bd9b1156
Events now have 4 arguments (or less)
2011-12-20 19:17:26 +01:00
Bart van Strien
083dd11185
Switch to a custom event system, where SDL pumps into
...
To do this we needed to take ThreadVariant out of love.thread, and move it to common.
This also changes event names, instead of 1/2-letter abbreviations, full names!
2011-12-13 17:50:38 +01:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01:00
Bart van Strien
05c2749760
Joysticks are supposed to be 1-indexed, even in the callbacks..
2011-09-21 21:26:34 +02:00
Bart van Strien
4165ac7e66
Add love.event.quit
2011-08-06 14:22:00 +02:00
Bill Meltsner
be5cb1696b
fix an "unused parameter" compiler warning
2011-05-16 12:11:20 -05:00
rude
20364c67bd
Added love.event.clear, because why not. (Issue #202 ).
2011-03-16 23:23:20 +01:00
Bart van Strien
db1a2d12ff
Add dead key support by exposing the "unknown" key
2011-01-26 16:06:14 +01:00
Bill Meltsner
fde708160e
bringing in the new year by changing every 2010 to 2011
2011-01-15 14:40:27 -06:00
rude
31c9995082
Fixed some type conversion warnings in VC. Mostly float <-> int and bool <-> int.
2011-01-09 16:28:30 +01:00
Bart van Strien
5235ceac53
Added love.focus callback
2010-08-03 13:51:19 +02:00
Bill Meltsner
7c33786100
fixed a ridiculous number of gcc warnings, nearly all of which were complaints about unused parameters - the remaining 199 warnings I get are from code that isn't ours (box2d is responsible for all but 8 of them)
2010-02-26 03:55:21 -05:00
bart@bartbes.ath.cx
736f7ab1a2
love.thread can now share full userdata
2010-02-14 17:41:11 +01:00
Bill Meltsner
73aba4bdd4
eliminated a whole bunch of gcc warnings
2010-02-09 13:21:25 -05:00
rude
aa01c984b9
Updated all dates to 2010.
2010-01-31 16:54:47 +01:00
rude
ee1964dde5
Fixed "kp"-prefix on some keyboard constants.
2009-10-11 17:16:00 +02:00
rude
87e3c4131c
Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
2009-10-10 11:11:04 +02:00