mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Hide touchscreen using bx-offscreen instead of bx-gone
This commit is contained in:
parent
fdbf618253
commit
966d7f2f6c
@ -3434,14 +3434,12 @@ class TouchController {
|
||||
}
|
||||
|
||||
static #show() {
|
||||
document.querySelector('#BabylonCanvasContainer-main').parentElement.classList.remove('bx-gone');
|
||||
// TouchController.loadCustomLayout(GAME_XBOX_TITLE_ID, TouchController.#currentLayoutId, 0);
|
||||
document.querySelector('#BabylonCanvasContainer-main').parentElement.classList.remove('bx-offscreen');
|
||||
TouchController.#showing = true;
|
||||
}
|
||||
|
||||
static #hide() {
|
||||
document.querySelector('#BabylonCanvasContainer-main').parentElement.classList.add('bx-gone');
|
||||
// TouchController.#dispatchMessage(TouchController.#EVENT_HIDE_CONTROLLER);
|
||||
document.querySelector('#BabylonCanvasContainer-main').parentElement.classList.add('bx-offscreen');
|
||||
TouchController.#showing = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user