webrtc-streaming-core
Advanced tools
Comparing version 1.1.34 to 1.1.35
@@ -22,4 +22,3 @@ import { AxisType } from "../models/hid.model"; | ||
VirtualGamepadAxis(x: number, y: number, type: AxisType): void; | ||
private mouseEnterEvent; | ||
private mouseLeaveEvent; | ||
ResetKeyStuck(event: MouseEvent): void; | ||
private keydown; | ||
@@ -26,0 +25,0 @@ private keyup; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HID = void 0; | ||
const log_1 = require("../utils/log"); | ||
const keys_model_1 = require("../models/keys.model"); | ||
@@ -42,7 +41,2 @@ const keys_model_2 = require("../models/keys.model"); | ||
/** | ||
* mouse lock event | ||
*/ | ||
document.addEventListener('mouseleave', this.mouseLeaveEvent.bind(this)); | ||
document.addEventListener('mouseenter', this.mouseEnterEvent.bind(this)); | ||
/** | ||
* shortcuts stuff | ||
@@ -170,10 +164,5 @@ */ | ||
} | ||
mouseEnterEvent(event) { | ||
(0, log_1.Log)(log_1.LogLevel.Debug, "Mouse enter"); | ||
ResetKeyStuck(event) { | ||
this.SendFunc((new keys_model_2.HIDMsg(keys_model_1.EventCode.KeyReset, {}).ToString())); | ||
} | ||
mouseLeaveEvent(event) { | ||
(0, log_1.Log)(log_1.LogLevel.Debug, "Mouse leave"); | ||
this.SendFunc((new keys_model_2.HIDMsg(keys_model_1.EventCode.KeyReset, {}).ToString())); | ||
} | ||
keydown(event) { | ||
@@ -180,0 +169,0 @@ event.preventDefault(); |
{ | ||
"name": "webrtc-streaming-core", | ||
"version": "1.1.34", | ||
"version": "1.1.35", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/app.js", |
Sorry, the diff of this file is not supported yet
197449
2989