Alex Szpakowski
8d0654a6a7
Added runtime drag-and-drop file and folder support via new love.filedropped and love.directorydropped event callback functions. filedropped has a single File object argument, and directorydropped has a single string argument containing the full path of the directory, which can be used with love.filesystem.mount.
...
--HG--
branch : minor
2014-10-18 20:30:36 -03:00
Alex Szpakowski
34688e929e
Merged default into minor
...
--HG--
branch : minor
2014-09-28 15:56:04 -03:00
Alex Szpakowski
c6b610d116
Cleaned up some code.
2014-09-21 19:50:02 -03:00
Alex Szpakowski
aa05664d4c
Merged default into minor
...
--HG--
branch : minor
2014-07-30 01:32:10 -03:00
Alex Szpakowski
014b9a46e5
Updated the Lua wrapper code for modules to account for cases where the module's instance is removed from memory completely and recreated during the program's lifetime.
2014-07-21 14:52:01 -03:00
Alex Szpakowski
38b65b859a
Merged default into minor
...
--HG--
branch : minor
2014-05-03 22:27:01 -03:00
Alex Szpakowski
e4dc533bb2
Minor code cleanup
2014-05-01 14:12:21 -03:00
Alex Szpakowski
1b61091aae
Removed the 'wu' and 'wd' constants for love.mousepressed, added new love.wheelmoved(x, y) event callback.
...
+x is mousewheel-right, +y is mousewheel-up.
--HG--
branch : minor
2014-04-19 21:36:06 -03:00
Alex Szpakowski
a22c4b5f92
Explicitly #ifdef'd out SDL 2.0.1+ function calls for Linux to avoid runtime function resolving problems when love is built with SDL 2.0.1+ headers but run using SDL 2.0.0.
2014-03-31 03:45:22 -03:00
Alex Szpakowski
b9fd3f3554
Missed one
2014-03-04 01:09:48 -04:00
Alex Szpakowski
07aba4c147
Added some missing obscure key constants
2014-03-04 00:52:16 -04:00
Alex Szpakowski
0d52ac6d52
Fixed dumb typo
2014-01-17 21:12:30 -04:00
Alex Szpakowski
309193895a
Added opt-in support for high-dpi mode in OS X when on a retina display (resolves issue #761 ).
...
Added a ‘highdpi’ boolean flag to t.window/love.window.setMode (defaults to false.)
When the window is actually in high-dpi mode on a supported display, the graphics width and height and the mouse position are in pixels, rather than ‘window coordinates’.
Added love.window.getPixelScale. Returns the scale factor of the window from user-space points to pixels (e.g. it will be 1 normally, and 2 on a retina display in OS X with high-dpi mode enabled.)
2014-01-17 21:11:20 -04:00
Alex Szpakowski
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -04: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
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
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
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
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06: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
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
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
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
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
rude
ab981ea982
Made error screen and reverted love.event.wait.
2009-08-24 21:38:35 +02:00
rude
ae8d660868
Fixed bug in love.event. Started on error screen.
2009-08-20 22:58:25 +02:00