Alex Szpakowski 7f9abc1e77 Added love.touch module and touch screen events. Resolves issue #825.
Note: this implementation is slightly different from the implementation in the love 0.9.x Android and iOS ports!

Added love.touchpressed(id, x, y), love.touchmoved(id, x, y, dx, dy), and love.touchreleased(id, x, y, dx, dy).

id is a unique identifier for the touch press that persists until love.touchreleased. After that it is no longer unique.
x and y are the coordinates of the touch event in pixels within the window.
dx and dy are the amount in pixels that the touch has moved since the last event.

Added love.touch.getTouchCount and love.touch.getTouch(index).

love.touch.getTouch takes an index (not the same as an id. indices are not stable and don't correspond to a unique touch press.)
It returns the id of the touch and its current x and y coordinates in pixels.

--HG--
branch : minor
2015-02-16 16:29:45 -04:00
2015-01-16 15:54:18 -04:00
2013-10-31 16:26:24 -03:00
2015-02-14 18:55:28 -04:00
2014-12-31 19:32:43 -04:00
2014-05-20 22:48:54 -03:00

LÖVE is an awesome framework you can use to make 2D games in Lua. It's free, open-source, and works on Windows, Mac OS X and Linux.

Documentation

We use our wiki for documentation. If you need further help, feel free to ask on our forums, and last but not least there's the irc channel #love on OFTC.

Compilation

###Windows Follow the instructions at the megasource repository page.

###*nix Run platform/unix/automagic from the repository root, then run ./configure and make.

$ platform/unix/automagic
$ ./configure
$ make

###Mac OS X Download the required frameworks from here and place them in /Library/Frameworks/.

Then use the Xcode project found at platform/macosx/love.xcodeproj.

Repository information

We use the 'default' branch for development, and therefore it should not be considered stable. Also used is the 'minor' branch, which is used for features in the next minor version and it is not our development target (which would be the next revision - version numbers are formatted major.minor.revision.)

We tag all our releases (since we started using mercurial), and have binary downloads available for them.

Experimental changes are developed in the separate love-experiments repository.

Builds

Releases are found in the 'downloads' section on bitbucket, are linked on the site, and there's a ppa for ubuntu, ppa:bartbes/love-stable.

There are also unstable/nightly builds:

Dependencies

  • SDL2
  • OpenGL
  • OpenAL
  • Lua / LuaJIT / LLVM-lua
  • DevIL with MNG and TIFF
  • FreeType
  • PhysicsFS
  • ModPlug
  • mpg123
  • Vorbisfile
S
Description
No description provided
Readme 100 MiB
Languages
C++ 83.6%
C 13.4%
Lua 2%
Objective-C++ 0.5%
CMake 0.2%
Other 0.1%