mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Support "styles" param in touch control
This commit is contained in:
parent
d91fdb798e
commit
b1df189c7d
@ -178,9 +178,7 @@ export class TouchController {
|
|||||||
layout: {
|
layout: {
|
||||||
id: 'System.Standard',
|
id: 'System.Standard',
|
||||||
displayName: 'System',
|
displayName: 'System',
|
||||||
layoutFile: {
|
layoutFile: layout,
|
||||||
content: layout.content,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, delay);
|
}, delay);
|
||||||
@ -188,7 +186,7 @@ export class TouchController {
|
|||||||
|
|
||||||
static setup() {
|
static setup() {
|
||||||
// Function for testing touch control
|
// Function for testing touch control
|
||||||
window.BX_EXPOSED.test_touch_control = (content: any) => {
|
window.BX_EXPOSED.test_touch_control = (layout: any) => {
|
||||||
const { touch_layout_manager } = window.BX_EXPOSED;
|
const { touch_layout_manager } = window.BX_EXPOSED;
|
||||||
|
|
||||||
touch_layout_manager && touch_layout_manager.changeLayoutForScope({
|
touch_layout_manager && touch_layout_manager.changeLayoutForScope({
|
||||||
@ -198,9 +196,7 @@ export class TouchController {
|
|||||||
layout: {
|
layout: {
|
||||||
id: 'System.Standard',
|
id: 'System.Standard',
|
||||||
displayName: 'Custom',
|
displayName: 'Custom',
|
||||||
layoutFile: {
|
layoutFile: layout,
|
||||||
content: content,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user