mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
itch specific changes
This commit is contained in:
parent
064a919bd6
commit
fb5414a036
|
@ -25,8 +25,7 @@ const ActionButton = styled.button`
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const AppContainer = styled.main`
|
const AppContainer = styled.main`
|
||||||
height: calc(100vh - 20px);
|
height: 100vh;
|
||||||
padding: 10px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@ -69,7 +68,7 @@ function App() {
|
||||||
|
|
||||||
useAvoidItchIoScrolling();
|
useAvoidItchIoScrolling();
|
||||||
|
|
||||||
const [isPlaying, setIsPlaying] = useState(false);
|
const [isPlaying, setIsPlaying] = useState(true);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AppContainer>
|
<AppContainer>
|
||||||
|
|
10
website/src/vendor/mgba.js
vendored
10
website/src/vendor/mgba.js
vendored
|
@ -5431,7 +5431,7 @@ var mGBA = (function () {
|
||||||
Module["canvas"].requestPointerLock
|
Module["canvas"].requestPointerLock
|
||||||
) {
|
) {
|
||||||
Module["canvas"].requestPointerLock();
|
Module["canvas"].requestPointerLock();
|
||||||
ev.preventDefault();
|
// ev.preventDefault();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
|
@ -8952,7 +8952,7 @@ var mGBA = (function () {
|
||||||
stringToUTF8(nodeName, focusEvent + 0, 128);
|
stringToUTF8(nodeName, focusEvent + 0, 128);
|
||||||
stringToUTF8(id, focusEvent + 128, 128);
|
stringToUTF8(id, focusEvent + 128, 128);
|
||||||
if (dynCall_iiii(callbackfunc, eventTypeId, focusEvent, userData))
|
if (dynCall_iiii(callbackfunc, eventTypeId, focusEvent, userData))
|
||||||
e.preventDefault();
|
/*e.preventDefault()*/;
|
||||||
};
|
};
|
||||||
var eventHandler = {
|
var eventHandler = {
|
||||||
target: __findEventTarget(target),
|
target: __findEventTarget(target),
|
||||||
|
@ -9133,7 +9133,7 @@ var mGBA = (function () {
|
||||||
var gamepadEvent = JSEvents.gamepadEvent;
|
var gamepadEvent = JSEvents.gamepadEvent;
|
||||||
__fillGamepadEventData(gamepadEvent, e["gamepad"]);
|
__fillGamepadEventData(gamepadEvent, e["gamepad"]);
|
||||||
if (dynCall_iiii(callbackfunc, eventTypeId, gamepadEvent, userData))
|
if (dynCall_iiii(callbackfunc, eventTypeId, gamepadEvent, userData))
|
||||||
e.preventDefault();
|
/*e.preventDefault()*/;
|
||||||
};
|
};
|
||||||
var eventHandler = {
|
var eventHandler = {
|
||||||
target: __findEventTarget(target),
|
target: __findEventTarget(target),
|
||||||
|
@ -9208,7 +9208,7 @@ var mGBA = (function () {
|
||||||
HEAP32[(keyEventData + 156) >> 2] = e.keyCode;
|
HEAP32[(keyEventData + 156) >> 2] = e.keyCode;
|
||||||
HEAP32[(keyEventData + 160) >> 2] = e.which;
|
HEAP32[(keyEventData + 160) >> 2] = e.which;
|
||||||
if (dynCall_iiii(callbackfunc, eventTypeId, keyEventData, userData))
|
if (dynCall_iiii(callbackfunc, eventTypeId, keyEventData, userData))
|
||||||
e.preventDefault();
|
/*e.preventDefault()*/;
|
||||||
};
|
};
|
||||||
var eventHandler = {
|
var eventHandler = {
|
||||||
target: __findEventTarget(target),
|
target: __findEventTarget(target),
|
||||||
|
@ -9334,7 +9334,7 @@ var mGBA = (function () {
|
||||||
if (
|
if (
|
||||||
dynCall_iiii(callbackfunc, eventTypeId, JSEvents.mouseEvent, userData)
|
dynCall_iiii(callbackfunc, eventTypeId, JSEvents.mouseEvent, userData)
|
||||||
)
|
)
|
||||||
e.preventDefault();
|
/*e.preventDefault()*/;
|
||||||
};
|
};
|
||||||
var eventHandler = {
|
var eventHandler = {
|
||||||
target: target,
|
target: target,
|
||||||
|
|
Loading…
Reference in a new issue