stratum-rs-overlay 2.0.0 → 3.0.1

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/dist/index.d.ts CHANGED
@@ -33,6 +33,9 @@ export declare function init(licenseKeyHex: string): boolean
33
33
  export declare function setOverlayPid(pid: number): void
34
34
  export declare function setOverlayHwnd(hwnd: number): void
35
35
  export declare function focusLastTarget(): boolean
36
+ export declare function areKeysPressed(vkCodes: Array<number>): boolean
37
+ export declare function stopMouseTracking(): boolean
38
+ export declare function startMouseTracking(targetName?: string | undefined | null): boolean
36
39
  export declare function stopTracking(): boolean
37
40
  /**
38
41
  * Start Tracking
package/dist/index.js CHANGED
@@ -310,12 +310,15 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { Mode, init, setOverlayPid, setOverlayHwnd, focusLastTarget, stopTracking, startTracking } = nativeBinding
313
+ const { Mode, init, setOverlayPid, setOverlayHwnd, focusLastTarget, areKeysPressed, stopMouseTracking, startMouseTracking, stopTracking, startTracking } = nativeBinding
314
314
 
315
315
  module.exports.Mode = Mode
316
316
  module.exports.init = init
317
317
  module.exports.setOverlayPid = setOverlayPid
318
318
  module.exports.setOverlayHwnd = setOverlayHwnd
319
319
  module.exports.focusLastTarget = focusLastTarget
320
+ module.exports.areKeysPressed = areKeysPressed
321
+ module.exports.stopMouseTracking = stopMouseTracking
322
+ module.exports.startMouseTracking = startMouseTracking
320
323
  module.exports.stopTracking = stopTracking
321
324
  module.exports.startTracking = startTracking
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratum-rs-overlay",
3
- "version": "2.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "A high-performance, non-intrusive game overlay library for Electron powered by Rust.",
5
5
  "os": [
6
6
  "win32"
@@ -36,16 +36,13 @@
36
36
  "@napi-rs/cli": "^2.18.4",
37
37
  "dotenv": "^17.2.3",
38
38
  "electron": "^40.0.0",
39
- "shx": "^0.4.0"
39
+ "shx": "^0.4.0",
40
+ "tweetnacl": "^1.0.3"
40
41
  },
41
42
  "napi": {
42
43
  "binaryName": "index",
43
44
  "targets": [
44
45
  "x86_64-pc-windows-msvc"
45
46
  ]
46
- },
47
- "dependencies": {
48
- "stratum-rs-overlay": "^1.0.5",
49
- "tweetnacl": "^1.0.3"
50
47
  }
51
48
  }