Skip to content

Commit

Permalink
itch specific changes
Browse files Browse the repository at this point in the history
  • Loading branch information
corwinkuiper committed Jul 5, 2023
1 parent c429ce5 commit fce907e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions website/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const ActionButton = styled.button`
`;

const AppContainer = styled.main`
height: calc(100vh - 20px);
padding: 10px;
height: 100vh;
display: flex;
`;

Expand Down Expand Up @@ -69,7 +68,7 @@ function App() {

useAvoidItchIoScrolling();

const [isPlaying, setIsPlaying] = useState(false);
const [isPlaying, setIsPlaying] = useState(true);

return (
<AppContainer>
Expand Down
10 changes: 5 additions & 5 deletions website/src/vendor/mgba.js
Original file line number Diff line number Diff line change
Expand Up @@ -5431,7 +5431,7 @@ var mGBA = (function () {
Module["canvas"].requestPointerLock
) {
Module["canvas"].requestPointerLock();
ev.preventDefault();
// ev.preventDefault();
}
},
false
Expand Down Expand Up @@ -8952,7 +8952,7 @@ var mGBA = (function () {
stringToUTF8(nodeName, focusEvent + 0, 128);
stringToUTF8(id, focusEvent + 128, 128);
if (dynCall_iiii(callbackfunc, eventTypeId, focusEvent, userData))
e.preventDefault();
/*e.preventDefault()*/;
};
var eventHandler = {
target: __findEventTarget(target),
Expand Down Expand Up @@ -9133,7 +9133,7 @@ var mGBA = (function () {
var gamepadEvent = JSEvents.gamepadEvent;
__fillGamepadEventData(gamepadEvent, e["gamepad"]);
if (dynCall_iiii(callbackfunc, eventTypeId, gamepadEvent, userData))
e.preventDefault();
/*e.preventDefault()*/;
};
var eventHandler = {
target: __findEventTarget(target),
Expand Down Expand Up @@ -9208,7 +9208,7 @@ var mGBA = (function () {
HEAP32[(keyEventData + 156) >> 2] = e.keyCode;
HEAP32[(keyEventData + 160) >> 2] = e.which;
if (dynCall_iiii(callbackfunc, eventTypeId, keyEventData, userData))
e.preventDefault();
/*e.preventDefault()*/;
};
var eventHandler = {
target: __findEventTarget(target),
Expand Down Expand Up @@ -9334,7 +9334,7 @@ var mGBA = (function () {
if (
dynCall_iiii(callbackfunc, eventTypeId, JSEvents.mouseEvent, userData)
)
e.preventDefault();
/*e.preventDefault()*/;
};
var eventHandler = {
target: target,
Expand Down

0 comments on commit fce907e

Please sign in to comment.