GithubHelp home page GithubHelp logo

Comments (14)

rhinoid avatar rhinoid commented on July 22, 2024 1

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.

mithrendal avatar mithrendal commented on July 22, 2024 1

πŸ‘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.

rhinoid avatar rhinoid commented on July 22, 2024 1

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.

mithrendal avatar mithrendal commented on July 22, 2024

Oh what a lovely creature ... is its name Hoi ?

image

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 ?

  1. Capture the keyboard right from the start

I already do see here ...

document.addEventListener('keyup', keyup, false);

from vamigaweb.

rhinoid avatar rhinoid commented on July 22, 2024

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.

mithrendal avatar mithrendal commented on July 22, 2024

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.

mithrendal avatar mithrendal commented on July 22, 2024

πŸ‘ 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.

rhinoid avatar rhinoid commented on July 22, 2024

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.

mithrendal avatar mithrendal commented on July 22, 2024

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.

mithrendal avatar mithrendal commented on July 22, 2024

I will look into the select disk to mount ....

from vamigaweb.

mithrendal avatar mithrendal commented on July 22, 2024

fixed in vAmigaWeb 😎 with your help !

just pushed out version ui 2022_11_23

from vamigaweb.

mithrendal avatar mithrendal commented on July 22, 2024

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.

67C8510A-CBE8-4228-AD9B-9F4F6C07A552

the zip dialog comes on top of it and hides it πŸ₯΄. Not so good, right?

from vamigaweb.

rhinoid avatar rhinoid commented on July 22, 2024

I got the upgrader indeed the second time around and the keyboard now works a lot better! Thank you! πŸ™

from vamigaweb.

mithrendal avatar mithrendal commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.