Comments (14)
Hi,
Unfortunately both solutions don't work for me. I have the feeling it might be the 'select a disk to mount' popup which could be interfering? Are you testing with a zip?
from vamigaweb.
πthis is a good catch !!! when the zip dialog comes up and is closed it is blocking the keyboard ... other dialogs like snapshot or action buttons dialog do not make trouble just the zip dialog... that should be easy to fix ... stay tuned
from vamigaweb.
Cool!
Anything specific I need to do to get that version? I now have: <script src="https://vAmigaWeb.github.io/js/vAmigaWeb_player.js"></script> in my page. But I think that still loads the old version
from vamigaweb.
Oh what a lovely creature ... is its name Hoi ?
can I feed it ?
you are right it is really damn hard ... is there a way to switch music off and get sounds when it runs and jumps ? Did you know that vAmigaWeb supports savepoints ... so called snapshots ? What we could do later is add action buttons liked to a hotkey which save a snapshot and another hotkey to restore snapshots ... this way even hard games are easy to master ...
ONLY when the bottom gray bar is tapped does the game accept keyboard input.
π¬ I can not reproduce this on desktop browsers ... your page works correct in chrome/FF and edge ... i.e. keyboard works immediately when switching the Hoi ingame pal/ntsc choice
on mobile safari it works with touch ... could not test my bluetooth keyboard because its non-rechargebal batteries are empty, have to buy new ones first... did you produce this issue on a mobile browser ?
- Capture the keyboard right from the start
I already do see here ...
Line 3115 in 9945d37
from vamigaweb.
hmmm
So I tried it on the Mac in Safari. There the keyboard is weird as I described.
But I installed Chrome (on the Mac) and here it doesn't even boot. It keep spinning with the text: "Booting into vAmiga WebEdition..."
p.s. Sorry if I'm responding slower the coming days. I think I'm coming down with flue/corona/something π
The little fella is indeed called 'Hoi' and is happy to be fed!
Waypoints sound perfect. There is a trainer in it but to activate it you have to perform gymnastics which on the Amiga was already hard, and here it's impossible. So waypoints on the best spots on the levels sound awesome.
from vamigaweb.
I will check on the mac ... which MacOS ?
I think I'm coming down with flue/corona/something π
drink much .... hot water !! and keep sleeping ... take care ! β€οΈ
from vamigaweb.
π reproduced the keyboard issue on macOs 12.6.1 with safari 16.1
Chrome (on the Mac) and here it doesn't even boot. It keep spinning with the text: "Booting into vAmiga WebEdition..."
can you append javascript console log output ?
EDIT: more findings! when in desktop safari after vAmiga spawns clicking anywhere (including the gray bar) but the amiga screen will make keyboard work...
I do not quite understand why ... might be a bug in safari ... but this hacky code repairs it too without need a explicit user click
document.activeElement.parentElement.click();
activeElement was the spawned iFrame... my guess it is somehow not connected in safari ... needs more investigation
from vamigaweb.
My appologies. My javascript skills are beyond poor. Where would I put this? Just at a random place on the page in a script tag? Or at a specific place/location?
from vamigaweb.
this gets very hacky π¬... and should not be a final solution ... its more a step to a fix .... so I would suggest you to just place the following setTimeout-command directly after the player.load command
vAmigaWeb_player.load(this,encodeURIComponent(JSON.stringify(config)));
setTimeout(()=>document.activeElement.parentElement.click(),600); //<--- make a click outside the iframe to get keyboard events flowing in safari
or what also seems to do the trick for safari ... instead of clicking make it loose the focus with blur (also place this after player.load ... instead of the click command)
//<--- make spawned iFrame loose the focus to get keyboard events flowing into iFrame on safari
setTimeout(()=>document.activeElement.blur(),600);
from vamigaweb.
I will look into the select disk to mount ....
from vamigaweb.
fixed in vAmigaWeb π with your help !
just pushed out version ui 2022_11_23
from vamigaweb.
should be automatic
i.e. upon clicking on your hoi teaser image it normally loads the PWA (progressive web app) from your browser cache (as usual) ... plus a new service worker is loaded too from the github.io server .. that service worker will be installed but is not active yet.
upon the next start the new service worker becomes active and a new version dialog pops up. where you can upgrade to the new version...or stay on the older version.
the zip dialog comes on top of it and hides it π₯΄. Not so good, right?
from vamigaweb.
I got the upgrader indeed the second time around and the keyboard now works a lot better! Thank you! π
from vamigaweb.
very cool ! I close this and make a new issue for the upgrade dialog which should stay on top of the zip file dialog ... and not vice versa as it is now ...
from vamigaweb.
Related Issues (20)
- directly boot from local storage via URL/JSON parameters HOT 4
- vamigaweb.github.io no longer boots certain ROMs after 3-4 update HOT 2
- BT Mouse - RMB (Secondary Button) Not Work iPadOS [FIXED: Update iPadOS to 16.5] HOT 5
- Incorrect Filename Save DF0 or DH0 If Both Mounted HOT 2
- LMB / Fire Btn Stuck On When Switch Between Apps
- 'Error: undefined' if a second HDF is mounted HOT 16
- Dark Bottom Bar not activated on launch... HOT 2
- Cannot load vAmigaWeb in iFrame if on same domain (Chromium specific?) HOT 18
- When using a HDF with WB the filedates are wrong HOT 5
- Onscreen Keyboard Issue HOT 3
- iPad Keyboard Issue HOT 9
- iPad Keyboard Issue HOT 1
- next to the INTL virtual keyboard support also the US version HOT 6
- Insert media eg DF0 popup touch also registers as LMB in emu... HOT 5
- vAmigaWeb runs on Apple Vision Pro HOT 13
- Warp button in the bottom player icon bar HOT 1
- action button enhancements HOT 23
- Active mouse and joystick signals stay open when bringing the app to background HOT 2
- add vAmiga activity monitors HOT 5
- Random Cannot Save Snapshot / ADF / HDF HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vamigaweb.