early-access version 1912

This commit is contained in:
pineappleEA 2021-07-25 13:35:58 +02:00
parent 03ad7ee169
commit 48366b8dd5
3 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
yuzu emulator early access
=============
This is the source code for early-access 1911.
This is the source code for early-access 1912.
## Legal Notice

View File

@ -370,9 +370,6 @@ void QtNXWebEngineView::LoadExtractedFonts() {
void QtNXWebEngineView::FocusFirstLinkElement() {
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.setSourceCode(QString::fromStdString(FOCUS_LINK_ELEMENT_SCRIPT));
focus_link_element.setWorldId(QWebEngineScript::MainWorld);

View File

@ -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"(
window.addEventListener("gamepadconnected", function(e) {
console.log("Gamepad connected at index %d: %s. %d buttons, %d axes.",