Browse Source

增加物理指针

zk 1 year ago
parent
commit
520af09c88
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/webRtcVideo.js

+ 3 - 3
src/webRtcVideo.js

@@ -1316,8 +1316,8 @@ function registerLockedMouseEvents(playerElement) {
 // the cursor to have an effect over the video. Otherwise the cursor just
 // passes over the browser.
 function registerHoveringMouseEvents(playerElement) {
-	styleCursor = 'none';   // We will rely on UE4 client's software cursor.
-	//styleCursor = 'default';  // Showing cursor
+	//styleCursor = 'none';   // We will rely on UE4 client's software cursor.
+	styleCursor = 'default';  // Showing cursor
 
 	playerElement.onmousemove = function (e) {
 		emitMouseMove(e.offsetX, e.offsetY, e.movementX, e.movementY);
@@ -1684,7 +1684,7 @@ function onConfig(config) {
 	let playerDiv = document.getElementById('player');
 	let playerElement = setupWebRtcPlayer(playerDiv, config);
 	resizePlayerStyle();
-
+    inputOptions.controlScheme=ControlSchemeType.HoveringMouse;
 	switch (inputOptions.controlScheme) {
 		case ControlSchemeType.HoveringMouse:
 			registerHoveringMouseEvents(playerElement);