Sie sind nicht angemeldet.

Red

Schüler

  • »Red« ist der Autor dieses Themas

Beiträge: 99

Wohnort: Australia

Beruf: Virtual tour creator, VR app developer

  • Nachricht senden

1

Dienstag, 5. April 2016, 08:03

Keydown event trigger issue

Hi,

I've got a splash screen of sorts and have assigned the ESC key to start the tour.

It seems that a mouse click is required somewhere in the pano area before the onkeydown event can be detected. I've tried to change fov, and move the y and y values onstart, etc but that doesn't solve it.

Was wondering if there's any way for the keydown event to be detected directly on first load without any other interaction with the pano.

Cheers

jordi

Profi

Beiträge: 583

Wohnort: Barcelona

Beruf: creating ideas & coding them

  • Nachricht senden

2

Dienstag, 5. April 2016, 09:55

you also need to load a pano to get key events...

Would love to have them without the click and loading the pano..
everpano.com step beyond 360

Red

Schüler

  • »Red« ist der Autor dieses Themas

Beiträge: 99

Wohnort: Australia

Beruf: Virtual tour creator, VR app developer

  • Nachricht senden

3

Dienstag, 5. April 2016, 10:56

Thanks for the reply Jordi.

Apologies, my splash screen is not just that - a pano is loaded at the start (a url include) with a graphic, but still no go.

4

Freitag, 8. April 2016, 07:12

Hi,

in the new release this have been changed - there the viewer automatically gets the input focus on startup. Then directly using the keyboard is possible.

See here for more information:
http://krpano.com/docu/html/#focus

Best regards,
Klaus

Red

Schüler

  • »Red« ist der Autor dieses Themas

Beiträge: 99

Wohnort: Australia

Beruf: Virtual tour creator, VR app developer

  • Nachricht senden

5

Samstag, 9. April 2016, 04:29

Many thanks again Klaus!