Sasha Szpakowski
639580cbd1
Add opt-in support for trackpad touch events. Add touch device types.
...
- Add new touch device type enum ("touchscreen", "touchpad", "touchpadrelative"). Coordinates for touchscreens are window-relative DPI-scaled pixels, and coordinates for touchpads are normalized [0, 1] values.
- Add new devicetype enum and ismouse boolean params to touch callbacks.
- Add love.touch.getDeviceType(touchid), love.touch.isMouse(touchid), and optional device type filter param for love.touch.getTouches.
- Add t.trackpadtouch boolean (defaults to false) to love.conf. Trackpad touch events will not be generated unless it's enabled.
Currently the trackpadtouch setting only works on macOS.
Resolves #1633 .
Resolves #2093 .
2024-12-25 13:15:17 -04:00
Sasha Szpakowski
9617c631b9
Fix xcode project
2024-10-18 20:24:11 -03:00
Sasha Szpakowski
72cda62fae
Use SDL3 on macOS and iOS
2024-10-12 12:19:19 -03:00
Sasha Szpakowski
a48639d112
update https library to love2d/lua-https@76d92e7
2024-08-10 17:54:23 -03:00
Sasha Szpakowski
4948e52013
iOS: update minimum runtime OS from 12.0 to 13.0.
2024-03-30 11:38:51 -03:00
Sasha Szpakowski
8aac67f597
macOS: update minimum runtime OS from 10.13 to 10.15.
...
std::filesystem isn't supported below 10.15, and libraries like glslang and OpenAL-Soft are starting to use those APIs.
2024-03-30 11:30:15 -03:00
Sasha Szpakowski
5ded7ed4d3
Add new (temporary) JoystickSDL3 file to build projects.
2024-03-25 21:01:05 -03:00
Sasha Szpakowski
64a30f177f
Merge branch 'main' into 12.0-development
2024-02-10 12:24:48 -04:00
Sasha Szpakowski
94d5864144
update year for copyright notice
2024-02-10 12:13:22 -04:00
Bart van Strien
dc8391397e
Merge remote-tracking branch 'origin/12.0-development' into remove-autotools
2024-01-28 11:58:26 +01:00
Sasha Szpakowski
95fdc1c899
Linux: don't try to build web glslang files
2024-01-07 21:58:29 -04:00
Sasha Szpakowski
715858a670
Fix typo
2024-01-07 21:46:51 -04:00
Sasha Szpakowski
ddbf64d3b7
Linux: build using C++17?
2024-01-07 21:40:14 -04:00
Sasha Szpakowski
c6b3d136af
iOS: update deployment target
...
newer glslang versions require newer C++ features than the old target supported.
2024-01-07 21:26:10 -04:00
Sasha Szpakowski
8e361aefbf
SPIRV-Cross: remove C API files
...
The spirv header for those is outdated and can cause warnings because its contents don't match the other spirv header files in SPIRV-Cross and glslang
2024-01-07 21:22:13 -04:00
Sasha Szpakowski
a99d5afc57
update glslang
2024-01-07 21:14:01 -04:00
Bart van Strien
e08502fafa
Update build dependencies
2024-01-06 13:04:19 +01:00
Bart van Strien
aa14bacdc9
Remove autotools build system
2024-01-06 13:04:19 +01:00
Bart van Strien
ac9ee9d3c7
Update debian package files for cmake variables
...
And automatically get the timestamp for the changelog too.
That does require an update to cmake 3.7, but as far as I can tell we never use a cmake version older than 3.16 (ubuntu 20.04).
2024-01-06 13:04:19 +01:00
Bart van Strien
84982ff4ef
Generate love.desktop using CMake too
...
Since I cannot easily change the variable used there, update the autotools codepath to insert the CMake variable.
2023-12-31 12:56:38 +01:00
Bart van Strien
e4e16e8a88
Remove unused OSX support in autotools
...
Probably best illustrated by the fact it's still called OSX, rather than
macOS.
2023-12-31 12:29:18 +01:00
Bart van Strien
ae0f2916ed
Remove dead code in configure.ac: old stb_image define
2023-12-31 12:23:29 +01:00
Sasha Szpakowski
62d17371ca
macOS xcode project: update deployment target to macOS 10.11
...
When it's set to earlier versions, love fails to link when new versions of the macOS SDK are used.
2023-12-02 15:37:44 -04:00
Sasha Szpakowski
8951635abc
Merge branch 'main' into 12.0-development
2023-12-02 13:40:49 -04:00
Sasha Szpakowski
aa0a0bdf7a
iOS: remove LuaJIT build script.
...
It's been moved to the love-apple-dependencies repository.
2023-11-26 14:23:49 -04:00
Sasha Szpakowski
ff45c308f4
macOS: increase minimum supported OS from 10.9 to 10.13
...
The most recent macOS SDK fails to link when the deployment target is set to 10.9.
2023-10-07 17:03:40 -03:00
Sasha Szpakowski
b8e2b1b6c5
Update Xcode project to account for removed files
2023-10-07 15:19:49 -03:00
Sasha Szpakowski
6e80d85110
Merge branch 'main' into 12.0-development
2023-08-19 21:35:55 -03:00
Miku AuahDark
536e7e9f69
configure.ac: Specify CXXFLAGS instead of CPPFLAGS.
...
Autotools uses CPPFLAGS for C preprocessor and CXXFLAGS for C++ compile flags.
2023-08-03 17:54:46 +08:00
Sasha Szpakowski
5f733ef0fa
Add new PhysfsIo file to xcode project
2023-05-29 09:43:44 -03:00
Sasha Szpakowski
78e7c44424
update version
2023-04-15 09:37:22 -03:00
Sasha Szpakowski
5c9ccd1652
iOS: Add harfbuzz.xcframework to xcode project
2023-01-08 20:25:38 -04:00
Sasha Szpakowski
82e516f2fb
Untested attempt at linux support for harfbuzz dependency
2023-01-03 21:12:16 -04:00
Sasha Szpakowski
b8a0e58fa6
macOS: add harfbuzz.framework reference to xcode project.
2023-01-03 20:36:11 -04:00
Sasha Szpakowski
d980b366da
Add TextShaper file references to Xcode project
2023-01-01 18:33:25 -04:00
Sasha Szpakowski
f6cdbdc868
Merge branch 'main' into 12.0-development
2022-12-31 22:46:34 -04:00
Sasha Szpakowski
c823dbca96
Update copyright year for 2023
2022-12-31 22:25:49 -04:00
Sasha Szpakowski
2e18128bec
Merge branch 'main' into 12.0-development
2022-12-30 00:04:32 -04:00
Sasha Szpakowski
fc3f5ee620
macOS: remove stray library search path
2022-12-30 00:03:58 -04:00
Sasha Szpakowski
456f897e43
Merge branch 'main' into 12.0-development
2022-12-29 12:12:28 -04:00
Sasha Szpakowski
6730d57f04
macOS: compile with symbols hidden by default.
2022-12-29 10:28:28 -04:00
Miku AuahDark
bfcb6c6643
Compile with -fvisibility=hidden by default.
...
This gives around 1MB size reduction.
2022-12-28 13:51:21 +08:00
Sasha Szpakowski
f17d3d94f1
Rename love.graphics Text objects to TextBatch.
...
The name Text is too generic compared to what they're designed for, it made people unnecessarily confused about their purpose.
2022-12-08 18:46:44 -04:00
Miku AuahDark
93612a84d1
Bump minimum SDL version to 2.0.9
2022-12-06 14:19:53 +08:00
Sasha Szpakowski
72fca1c2da
update xcode project with new sensor module files
2022-12-05 22:54:39 -04:00
slime
d966c9e531
update xcode project for luasocket changes
2022-10-08 17:14:24 -03:00
niki
735c8b0290
vulkan: provide vulkan headers ourselves
2022-09-20 02:10:51 +02:00
niki
850749fac0
linux build: use c++14
2022-09-18 20:39:55 +02:00
Alex Szpakowski
dd7e20fe18
Xcode project file maintenance
2022-06-09 19:57:53 -03:00
Alex Szpakowski
3a5c3df02f
Add sync and async texture and buffer readback APIs.
...
- Add imagedata = love.graphics.readbackTexture(texture, [slice, mipmap, x, y, w, h, [dest, destx, desty]]).
- Add readback = love.graphics.readbackTextureAsync(texture, [slice, mipmap, x, y, w, h, [dest, destx, desty]]).
- Add bytedata = love.graphics.readbackBuffer(buffer, [offset, size, [dest, destoffset]]).
- Add readback = ove.graphics.readbackBufferAsync(buffer, [offset, size, [dest, destoffset]]).
- Deprecate Texture:newImageData.
The async variants return a new GraphicsReadback object. It has the following methods:
- isComplete()
- hasError()
- wait()
- getBufferData()
- getImageData()
- update() (called automatically every frame by love, not normally needed).
Support notes:
- readbackBuffer and readbackBufferAsync require buffer copying support.
- readbackTexture with a render target (canvas) is always supported. readbackTexture with a non-render-target requires copy-texture-to-buffer support.
- readbackTextureAsync with a render target requires copy-render-target-to-buffer support. readbackTextureAsync with a non-render-target requires copy-texture-to-buffer support.
2022-05-30 21:53:55 -03:00