@vnejs/docs 0.2.68 → 0.2.69

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.
@@ -1,4 +1,5 @@
1
1
  # 0.2.68
2
2
 
3
3
  - `plugins/controls/gamepad` — joypad.js is gone. The plugin polls `navigator.getGamepads()` every frame, including a pad already connected at launch. API: `GAMEPAD.BUTTON_PRESS`, `GAMEPAD.BUTTON_RELEASE`, `GAMEPAD.AXIS`, `GAMEPAD.CONNECT`, `GAMEPAD.DISCONNECT`. One pad still sets `CONTROLS.DEVICE_SET` at once.
4
+ - `cli/desktop` — Electron is `41.10.7` (`games/coraline`, `games/checkers`, and `games/vn.skeleton` pin the same). On Windows the host disables `Windows.Gaming.Input` (`disable-features=EnableWindowsGamingInputDataFetcher`) so `navigator.getGamepads()` reads XInput.
4
5
  - `compatibility/controls.gamepad/controls.cursor` — stick input comes from `GAMEPAD.AXIS`. Left stick is `CURSOR.SHIFT`, right stick is `CURSOR.SCROLL`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/docs",
3
- "version": "0.2.68",
3
+ "version": "0.2.69",
4
4
  "description": "VNEJS documentation for engine consumers and coding agents",
5
5
  "files": [
6
6
  "*.md",
@@ -59,6 +59,8 @@ So the plugin:
59
59
 
60
60
  `controls.gamepad.poll` reads `navigator.getGamepads()` on init and on every animation frame. A pad that was already connected at launch is in that list, so it does not depend on the browser `gamepadconnected` event.
61
61
 
62
+ Windows Electron disables `Windows.Gaming.Input` so that list comes from XInput. Proton on Steam Deck fills XInput.
63
+
62
64
  `controls.gamepad.device` reads the same list on init and on `CONNECT`. One pad sets `CONTROLS.DEVICE_SET` at once (`DEVICES.XBOX` or `DEVICES.PLAYSTATION` by `gamepad.id`). Several pads still wait for the first real press or stick.
63
65
 
64
66
  Profile priority: `steam-deck` → `playstation` → `nintendo` → `firefox` → `standard`.