@kmamal/sdl 0.11.9 → 0.11.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -2
- package/README.md +1050 -1023
- package/package.json +4 -4
- package/scripts/download-sdl.mjs +3 -3
- package/src/javascript/controller/controller-instance.js +4 -1
- package/src/javascript/events/index.js +27 -0
- package/src/javascript/joystick/joystick-instance.js +3 -1
- package/src/javascript/keyboard/index.js +11 -6
- package/src/native/controller.cpp +15 -5
- package/src/native/controller.h +1 -0
- package/src/native/events.cpp +41 -5
- package/src/native/events.h +4 -0
- package/src/native/global.cpp +21 -11
- package/src/native/joystick.cpp +18 -21
- package/src/native/joystick.h +2 -1
- package/src/native/keyboard.cpp +1 -1
- package/src/native/module.cpp +0 -1
- package/src/types/index.d.ts +42 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v0.11.11] - 2025-07-21
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- The `powerUpdate` event lets you know when a joystick or controller's power level has changed.
|
|
13
|
+
- The `steamHandleUpdate` event lets you know when a controller's Steam handle has changed.
|
|
14
|
+
- The `keymapChange` event lets you know when the keyboard layout has changed.
|
|
15
|
+
|
|
16
|
+
## [v0.11.10] - 2025-07-19
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Made it optional to initialize the joystick, controller, haptic, or sensor subsystems during SDL initialization. Failing to initialize any of these is not fatal to the application. The new `sdl.info.initialized` object contains relevant information.
|
|
21
|
+
|
|
8
22
|
## [v0.11.9] - 2025-07-18
|
|
9
23
|
|
|
10
24
|
### Fixed
|
|
@@ -26,7 +40,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
26
40
|
|
|
27
41
|
- Started keeping this changelog.
|
|
28
42
|
|
|
29
|
-
[unreleased]: https://github.com/kmamal/node-sdl/compare/v0.11.
|
|
30
|
-
[v0.11.
|
|
43
|
+
[unreleased]: https://github.com/kmamal/node-sdl/compare/v0.11.11...HEAD
|
|
44
|
+
[v0.11.11]: https://github.com/kmamal/node-sdl/compare/v0.11.10...v0.11.11
|
|
45
|
+
[v0.11.10]: https://github.com/kmamal/node-sdl/compare/v0.11.9...v0.11.10
|
|
46
|
+
[v0.11.9]: https://github.com/kmamal/node-sdl/compare/v0.11.8...v0.11.9
|
|
31
47
|
[v0.11.8]: https://github.com/kmamal/node-sdl/compare/v0.11.7...v0.11.8
|
|
32
48
|
[v0.11.7]: https://github.com/kmamal/node-sdl/releases/tag/v0.11.7
|