@hytopia.com/server-protocol 1.4.25 → 1.4.26

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/Input.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.4.25",
3
+ "version": "1.4.26",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Input.ts CHANGED
@@ -38,6 +38,7 @@ export type InputSchema = {
38
38
  mr?: boolean; // mouse right pressed
39
39
  cp?: number; // camera pitch radians
40
40
  cy?: number; // camera yaw radians
41
+ jd?: number; // joystick direction radians
41
42
  sq?: number; // sequence number for UDP inputs
42
43
  }
43
44
 
@@ -81,6 +82,7 @@ export const inputSchema: JSONSchemaType<InputSchema> = {
81
82
  mr: { type: 'boolean', nullable: true },
82
83
  cp: { type: 'number', nullable: true },
83
84
  cy: { type: 'number', nullable: true },
85
+ jd: { type: 'number', nullable: true },
84
86
  sq: { type: 'number', nullable: true },
85
87
  },
86
88
  additionalProperties: false,