early-access version 1912
This commit is contained in:
parent
03ad7ee169
commit
48366b8dd5
3 changed files with 7 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 1911.
|
This is the source code for early-access 1912.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -370,9 +370,6 @@ void QtNXWebEngineView::LoadExtractedFonts() {
|
||||||
void QtNXWebEngineView::FocusFirstLinkElement() {
|
void QtNXWebEngineView::FocusFirstLinkElement() {
|
||||||
QWebEngineScript focus_link_element;
|
QWebEngineScript focus_link_element;
|
||||||
|
|
||||||
constexpr char FOCUS_LINK_ELEMENT_SCRIPT[] =
|
|
||||||
R"(if(document.getElementsByTagName("a").length > 0) document.getElementsByTagName("a")[0].focus();)";
|
|
||||||
|
|
||||||
focus_link_element.setName(QStringLiteral("focus_link_element.js"));
|
focus_link_element.setName(QStringLiteral("focus_link_element.js"));
|
||||||
focus_link_element.setSourceCode(QString::fromStdString(FOCUS_LINK_ELEMENT_SCRIPT));
|
focus_link_element.setSourceCode(QString::fromStdString(FOCUS_LINK_ELEMENT_SCRIPT));
|
||||||
focus_link_element.setWorldId(QWebEngineScript::MainWorld);
|
focus_link_element.setWorldId(QWebEngineScript::MainWorld);
|
||||||
|
|
|
@ -73,6 +73,12 @@ constexpr char LOAD_NX_FONT[] = R"(
|
||||||
})();
|
})();
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
constexpr char FOCUS_LINK_ELEMENT_SCRIPT[] = R"(
|
||||||
|
if (document.getElementsByTagName("a").length > 0) {
|
||||||
|
document.getElementsByTagName("a")[0].focus();
|
||||||
|
}
|
||||||
|
)";
|
||||||
|
|
||||||
constexpr char GAMEPAD_SCRIPT[] = R"(
|
constexpr char GAMEPAD_SCRIPT[] = R"(
|
||||||
window.addEventListener("gamepadconnected", function(e) {
|
window.addEventListener("gamepadconnected", function(e) {
|
||||||
console.log("Gamepad connected at index %d: %s. %d buttons, %d axes.",
|
console.log("Gamepad connected at index %d: %s. %d buttons, %d axes.",
|
||||||
|
|
Loading…
Reference in a new issue