Alex Szpakowski
44d10be928
Added a love.keyboard.setTextInput variant (setTextInput(enable, x, y, width, height)) to specify a rectangle where text is expected to be displayed on the screen. This is used as a hint so on-screen keyboards won't cover the text area.
...
Added love.keyboard.hasScreenKeyboard.
--HG--
branch : minor
2015-02-17 00:35:01 -04:00
Alex Szpakowski
5c1e6014cc
Changed the love.keypressed and love.keyreleased event callbacks to be love.keypressed(key, scancode, isrepeat) and love.keyreleased(key, scancode). Added love.keyboard.isScancodeDown. Resolves issue #993 .
...
--HG--
branch : minor
2015-02-16 17:10:03 -04:00
Alex Szpakowski
7d2f1d74a4
Renamed the Key and Scancode constants representing the spacebar from " " to "space" (see issue #976.)
...
--HG--
branch : minor
2015-02-15 16:11:50 -04:00
Alex Szpakowski
ed4c364171
Fixed a potential crash when an invalid Scancode constant argument is used in love.keyboard.getKeyFromScancode.
2015-02-14 17:54:25 -04:00
Alex Szpakowski
a314b18515
Added love.keyboard.getKeyFromScancode and love.keyboard.getScancodeFromKey. Resolves issue #982 .
...
Scancodes represent a physical key independent of the keyboard's current layout. For example, pressing the key located where 'q' is on a U.S. keyboard will produce the key 'q' and the scancode 'q' when using a U.S. keyboard layout, but when using a French keyboard layout it will produce the key 'a' and the scancode 'q'.
Scancodes are useful for creating default controls that have the same physical locations on on all keyboards.
2015-02-01 03:13:14 -04:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
Alex Szpakowski
e2354acc65
Updated the love key to SDL keycode mapping to be a static array instead of a std::map.
2014-09-27 03:17:08 -03:00
Alex Szpakowski
d52bab4221
Updated the new module changes to use more compile/link-time checking rather than runtime checking.
2014-07-21 15:12:01 -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
0c4116468c
And some more.
2014-06-09 18:37:47 -03:00
Alex Szpakowski
787ba6b650
Removed some stowaway test code...
2014-06-09 18:32:02 -03:00
Alex Szpakowski
dfa319e01a
Replaced the EXCEPT_GUARD macro for converting love exceptions into Lua errors with the new luax_catchexcept function, which takes lambda function arguments.
2014-06-03 19:27:00 -03:00
Alex Szpakowski
e4dc533bb2
Minor code cleanup
2014-05-01 14:12:21 -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
fda005c5ff
love.graphics.getScissor now has a proper C++ module method
2014-01-09 22:49:00 -04:00
Alex Szpakowski
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -04:00
Alex Szpakowski
8d5ddb9e34
Fixed some internal documentation (thanks to clang's -Wdocumentation)
2013-09-23 21:52:28 -03:00
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
389e99bf2c
Added love.keyboard.setTextInput to enable/disable text input events (enabled by default.)
...
This fixes the issue of receiving an unwanted text input event if a key is used to bring a game's textbox into focus, since textinput events can be triggered after keypress events if the keypress generates text.
2013-09-05 18:55:44 -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
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
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04: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
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
362a7835b4
Make keyboard repeat better.. or something
2011-12-11 19:08:01 +01:00
Bart van Strien
1503533ee6
Key repeat gets seconds too
2011-12-06 21:30:31 +01:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01:00
rude
2753c62985
Abstractify some modules completely: timer, keyboard and mouse.
...
If this commit breaks some project file(s), well ...
I AM RUDE AND I WILL BREAK EVERYTHING, AHAHAHAHAHAHAHHAHAHAHAHA!
2011-10-28 10:47:16 +02:00
Bill Meltsner
803306270e
Fix a memory leak
2011-03-19 10:20:29 -04:00
Bart van Strien
766c863484
Make isDown accept a list of keys (issue #121 )
2011-03-19 12:47:39 +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
bart@bartbes.ath.cx
736f7ab1a2
love.thread can now share full userdata
2010-02-14 17:41:11 +01:00
rude
aa01c984b9
Updated all dates to 2010.
2010-01-31 16:54:47 +01:00
rude
435fc43f68
Fixed love.keyboard.setKeyRepeat, fixed issues with Body:getWhatever, and made the save directory settable.
2009-10-29 22:34:54 +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
rude
623e701549
Modules now reside in Lua and are treated (almost) like normal objects.
...
Also added a way of getting a pointer to abstract module instances internally.
2009-09-02 21:18:13 +02:00
rude
dd420d68a3
Ok, project generation didn't really work out. Reverted.
2009-08-10 21:33:07 +02:00
rude
ba1a75e547
Added many comments, and changed function names for wrapper functions.
2009-08-09 21:08:55 +02:00
rude
8e681b4204
It's now possible to build each module individually (as a DLL).
2009-08-04 19:57:14 +02:00
rude
0c241a14fb
Added resources, and changed slightly how wrappers expose functions.
2009-07-30 00:37:43 +02:00
rude
e0115a384e
Moved most constants into relevant classes.
2009-07-26 23:05:26 +02:00
rude
dcb3dfd83d
Initial Mercurial commit.
2009-07-26 15:46:49 +02:00