webrtc-streaming-core
Advanced tools
Comparing version 1.1.27 to 1.1.28
@@ -19,3 +19,3 @@ import { AxisType } from "../models/hid.model"; | ||
private runAxis; | ||
VirtualGamepadButtonSlider(released: boolean, index: number): void; | ||
VirtualGamepadButtonSlider(isDown: boolean, index: number): void; | ||
VirtualGamepadAxis(x: number, y: number, type: AxisType): void; | ||
@@ -22,0 +22,0 @@ private mouseEnterEvent; |
@@ -129,3 +129,3 @@ "use strict"; | ||
; | ||
VirtualGamepadButtonSlider(released, index) { | ||
VirtualGamepadButtonSlider(isDown, index) { | ||
if (index == 6 || index == 7) { // slider | ||
@@ -135,7 +135,7 @@ this.SendFunc((new keys_model_2.HIDMsg(keys_model_1.EventCode.GamepadSlide, { | ||
index: index, | ||
val: !released ? 1 : 0 | ||
val: isDown ? 1 : 0 | ||
}).ToString())); | ||
return; | ||
} | ||
this.SendFunc((new keys_model_2.HIDMsg(released ? keys_model_1.EventCode.GamepadButtonUp : keys_model_1.EventCode.GamepadButtonDown, { | ||
this.SendFunc((new keys_model_2.HIDMsg(isDown ? keys_model_1.EventCode.GamepadButtonDown : keys_model_1.EventCode.GamepadButtonUp, { | ||
gamepad_id: 0, | ||
@@ -142,0 +142,0 @@ index: index |
{ | ||
"name": "webrtc-streaming-core", | ||
"version": "1.1.27", | ||
"version": "1.1.28", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/app.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196261