Expose more battery and power connection state

This commit is contained in:
snippet
2025-10-01 18:40:11 +10:00
parent 8afcf3a44b
commit 7b64f24a31
7 changed files with 164 additions and 1 deletions
+2
View File
@@ -29,6 +29,8 @@ Released: N/A
* Added Joystick:hasSensor.
* Added Joystick:isSensorEnabled and Joystick:setSensorEnabled.
* Added Joystick:getSensorData.
* Added Joystick:getDeviceBatteryPercent and Joystick:getDevicePowerState, these expose how charged batteries in a controller are and if they're charging
* Added Joystick:getConnectionState which indicates if a joystick is connected wired or wireless
* Added new Gamepad API buttons: "misc1", "paddle1", "paddle2", "paddle3", "paddle4". and "touchpad".
* Added World:getFixturesInArea().
* Added support for saving .exr image files via ImageData:encode.