A userscript that allows EaglerCraft to run on mobile browsers
Go to file
FlamedDogo99 f5e74945ec
Auto detect keyboard issue
First attempt:
hiddenInput saves the most recent value to window.lastKey
If we detect a keydown event with invalid key, keyCode or which, we enable window.keyboardFix, and redispatch the key from window.lastKey
The keyboard blocking function now checks for window.keyboardFix
2024-06-06 11:26:45 -06:00
.github/ISSUE_TEMPLATE Updated 2024-05-26 15:21:04 -06:00
.gitignore Updated 2024-05-26 15:21:04 -06:00
eaglermobile-ef.js Updated from userscript 2024-06-06 09:49:08 -06:00
eaglermobile.user.js Auto detect keyboard issue 2024-06-06 11:26:45 -06:00
LICENSE Initial commit 2024-05-26 15:11:24 -06:00
README.md Added goal 2024-06-02 17:30:49 -05:00

Eagler Mobile

A userscript that allows eaglercraft to run on mobile devices

To-do

  • Gamepad support
  • Cancel button for file upload
  • Styling for file upload
  • Back button for Kiwi browser?
  • Fix keyboard input for Android devices

Implemented

  • Fake pointerlock API (tricks the client into loading)
  • Fake fullscreen API (so that selecting full screen doesn't crash the client)
  • Custom upload button for files (because safari is a pain with button clicks)
  • Fake mousemove events (Allows touch and drag to simulate mouse movement)
  • Fake cursor scroll events (Allows scrolling through hotbar and in menus)
  • On-screen controls (Movement, block placement/removal/picking, inventory, item dropping, keyboard, and exiting keys)
  • Styling for html, body, and canvas (So that the canvas doesn't ignore the navigation bars for viewport sizing)
  • Strafe buttons when holding forward
  • Crouch lock on hold
  • Re-orginize button layout
  • Redo the display button functions
  • Sprint button (sperate from double tapping forward)