Skip to content

Commit

Permalink
📝 content update
Browse files Browse the repository at this point in the history
  • Loading branch information
tackyunicorn committed Jul 22, 2024
1 parent 1eac4c0 commit c119337
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/posts/frogger/rasterize.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ function triggerVibration(time) {

// does stuff when keys are pressed
function handleKeyDown(event) {
const arrowKeys = ['ArrowRight', 'ArrowLeft', 'ArrowUp', 'ArrowDown'];
if (arrowKeys.includes(event.code)) {
event.preventDefault();
}

const modelEnum = {TRIANGLES: "triangles", ELLIPSOID: "ellipsoid"}; // enumerated model type
const dirEnum = {NEGATIVE: -1, POSITIVE: 1}; // enumerated rotation direction
Expand Down

0 comments on commit c119337

Please sign in to comment.