Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MajesticWafer authored Oct 18, 2023
1 parent c97d5dd commit 35fced9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ function loadConfig() {
}
$id('power-save').checked = config.powerSave
$id('vk-enabled').checked = config.vkEnabled
$id('trigger-swap').checked = config.triggerSwap
}
loadConfig()

function uiSaveConfig() {
config.powerSave = !!($id('power-save').checked)
config.vkEnabled = !!($id('vk-enabled').checked)
config.triggerSwap = !!($id('trigger-swap').checked)
window.localStorage['config'] = JSON.stringify(config)
}

Expand Down Expand Up @@ -180,10 +178,6 @@ function emuRunFrame() {
if (config.powerSave) {
Module._runFrame(0, keyMask, touched, touchX, touchY)
}
if (config.triggerSwap) {
vkMap['l'].style = makeVKStyle(offTop, 2, vkw * 0.85, vkh * 0.85, fontSize * 0.85)
vkMap['r'].style = makeVKStyle(offTop, 2, vkw * 0.85, vkh * 0.85, fontSize * 0.85,)
}
Module._runFrame(1, keyMask, touched, touchX, touchY)

ctx2d[0].putImageData(FB[0], 0, 0)
Expand Down

0 comments on commit 35fced9

Please sign in to comment.