Commit Graph

146 Commits

Author SHA1 Message Date
Sasha Szpakowski b0a2cb4d7d Add love.joystick.setBackgroundEvents(bool) and hasBackgroundEvents.
Resolves #2270.
2026-03-30 21:13:13 -03:00
John Doe fc5eeb11a3 Fix copyright notice date 2026-01-21 18:49:11 +00:00
snippet 5f4cfacf8a Properly initialize variables + fix changes.txt 2025-10-14 20:55:49 +11:00
snippet a8ed7ac7d9 Remove code added accidently for testing 2025-10-01 18:43:01 +10:00
snippet 7b64f24a31 Expose more battery and power connection state 2025-10-01 18:40:11 +10:00
John Doe 6f08eb94c6 Update copyright notice with correct year 2025-07-12 23:19:22 +01:00
Sasha Szpakowski 6a972eec8e Fix Joystick:getGamepadType when the gamepad is disconnected. 2025-04-12 17:03:50 -03:00
Sasha Szpakowski 5c1c23fec6 Fix Joystick:setVibration return value 2025-04-12 16:59:07 -03:00
Sasha Szpakowski 337d8fa048 remove source code support for SDL2 2024-10-18 20:22:26 -03:00
Sasha Szpakowski e986160431 Use SDL3-compatible SDL includes when SDL3 headers are available 2024-10-06 20:27:28 -03:00
Sasha Szpakowski dda7603d0d update SDL3 codepaths to work with 3.1. 2024-10-06 16:53:09 -03:00
Sasha Szpakowski 5ded7ed4d3 Add new (temporary) JoystickSDL3 file to build projects. 2024-03-25 21:01:05 -03:00
Sasha Szpakowski 8d360113f8 update code for some recent SDL3 renames 2024-03-25 20:55:28 -03:00
Sasha Szpakowski 2bdadf51d4 Merge branch 'main' into SDL3 2024-03-24 18:53:08 -03:00
Sasha Szpakowski 1e97e09b28 Rework internal module registration to happen in constructors. 2024-02-24 15:21:38 -04: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
Sasha Szpakowski 62ac858f30 Initial source code support for SDL3. No build system support. 2024-02-04 17:02:26 -04:00
Sasha Szpakowski 6e80d85110 Merge branch 'main' into 12.0-development 2023-08-19 21:35:55 -03:00
Miku AuahDark 8913ca2b23 Fix wrong function being registered for Joystick:getSensorData(). 2023-08-04 21:43:36 +08:00
Sasha Szpakowski 5f4f0b424b love.joystick: more fixes for duplicate platform fields in gamepad mapping strings. 2023-06-18 11:54:17 -03:00
Sasha Szpakowski df7a55911d Fix love.joystick.setGamepadMapping breaking the mapping string when replacing an existing binding.
issue #1936.
2023-06-17 22:16:18 -03:00
Sasha Szpakowski f06d6c6281 Only add platform field to love.joystick.getGamepadMappingString's result if it's not there already. 2023-06-17 20:34:27 -03:00
Sasha Szpakowski 47e51af487 Add Joystick:getJoystickType. 2023-02-06 18:16:19 -04:00
Sasha Szpakowski f6cdbdc868 Merge branch 'main' into 12.0-development 2022-12-31 22:46:34 -04:00
Sasha Szpakowski 0b75f6cfa5 Missed some files... 2022-12-31 22:36:48 -04:00
Sasha Szpakowski c823dbca96 Update copyright year for 2023 2022-12-31 22:25:49 -04:00
Miku AuahDark 93612a84d1 Bump minimum SDL version to 2.0.9 2022-12-06 14:19:53 +08:00
Miku AuahDark 0753e7eee7 Silence some compiler warnings. 2022-12-06 00:16:38 +08:00
Miku AuahDark 0442128006 Sensor in Joystick. 2022-12-05 23:09:50 +08:00
Er2 53b20b1341 some fixes
Fixed duration and love naming conventions.
2022-08-20 19:05:56 +03:00
Er2 7c9d6d5694 add Lua string for new controllers 2022-08-20 10:51:39 +03:00
Er2 0b4b1db9fe SDL 2.24.0 support 2022-08-20 10:44:34 +03:00
Alex Szpakowski 7f3538d2ba Merge branch 'main' into 12.0-development 2022-01-05 21:10:27 -04:00
Alex Szpakowski 59f532fdfa Add amazon luna and google stadia enums to Joystick:getGamepadType. 2022-01-01 18:15:27 -04:00
Alex Szpakowski 8e7fd10b6f Update copyright year for 2022 2021-12-31 18:33:40 -04:00
Alex Szpakowski c8038f22df Merge branch 'main' into 12.0-development 2021-12-24 11:35:35 -04:00
Alex Szpakowski 7e271fc53e Use SDL's rumble APIs for Joystick:setVibration, when available.
Fixes #1756
2021-12-11 11:52:42 -04:00
Alex Szpakowski 9b4aea8f17 Missed some copyright date updates 2021-04-07 20:34:24 -03:00
Alex Szpakowski 21f5ba86d3 Merge branch 'master' into 12.0-development 2021-04-07 20:33:44 -03:00
Alex Szpakowski f89aabb0bb Update copyright year for 2021 2021-04-04 16:14:45 -03:00
Alex Szpakowski b1b70a83db Add Joystick:set/getPlayerIndex 2021-02-15 16:08:23 -04:00
Alex Szpakowski 5e411f607f Expose new gamepad buttons from SDL 2021-02-14 16:03:36 -04:00
Alex Szpakowski 1e27b1d6ed Add Joystick:getGamepadType.
Return value is "unknown", "xbox360", "xboxone", "ps3", "ps4", "ps5", "switchpro", or "virtual".
2021-02-14 14:40:45 -04:00
Alex Szpakowski fc4847c69d Update copyright for the new year 2020-01-03 22:40:36 -04:00
Alex Szpakowski 33bc8aabfc Add Joystick:getGamepadMappingString and love.joystick.getGamepadMappingString(guid). Resolves issue #1371. 2019-09-15 14:02:19 -03:00
Alex Szpakowski aca979c3ea Add Joystick:getDeviceInfo(). Returns USB vendor id, product id, and product version numbers (consistent across operating systems).
Can be used to show different icons, etc. for different gamepads.
2019-06-29 21:01:17 -03:00
Alex Szpakowski 0752f27bdf Update copyright year for 2019 2019-01-03 21:09:05 -04:00
Alex Szpakowski c8d2d76df7 Work around a compiler bug in old versions of VS2013 (resolves issue #1458). 2018-12-12 11:26:14 -04:00
enra64 3ed404388b fixed not being able to remap gamepads by resolving problem with re-initializing joysticks as gamepads 2017-09-16 09:30:46 +02:00