|
@@ -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);
|