The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

Using Opera TV Emulator for presentations

Forums » Dev.Opera » Opera TV Content Development Discussions

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

7. October 2011, 16:31:38

maettyhawk

Posts: 9

Using Opera TV Emulator for presentations

Hi there,

I wanted to know if there's a possibility to make the "red button" of the virtual remote control interact with the CE-HTML app I was planning to develop for a presentation. I was hoping there was a way to trigger a JS key event by using the virtual remote control so that I could re-enact the real world situation by using the emulator.

Best regards

Mathieu

12. October 2011, 10:07:21

Opera Software

lbendig

Posts: 55

"Red button" is defined as a keyCode=403. You can map that key code in your app.

12. October 2011, 12:20:14

maettyhawk

Posts: 9

Ok, but how can I listen to an event that was caused by the virtual remote control? Most likely not by using a normal event listener like the following, right?

document.addEventListener("keydown", function(e){ alert(e.keyCode); });


Originally posted by lbendig:

"Red button" is defined as a keyCode=403. You can map that key code in your app.

12. October 2011, 14:28:34

Opera Software

lbendig

Posts: 55

Why not? Just that's standard keypress. You can for example try out this page for tests: http://unixpapa.com/js/testkey.html

12. October 2011, 14:32:14

maettyhawk

Posts: 9

Ok, thanks a lot...

12. October 2011, 17:39:30

Opera Software

lbendig

Posts: 55

You're welcome. I hope that everything will be fine with your presentation.

31. October 2011, 11:39:11

sdsaroj67

Posts: 1

Originally posted by maettyhawk:

Hi there,

I wanted to know if there's a possibility to make the "red button" of the virtual remote control interact with the CE-HTML app I was planning to develop for a presentation. I was hoping there was a way to trigger a JS key event by using the virtual remote control so that I could re-enact the real world situation by using the emulator.

Best regards

Mathieu

Forums » Dev.Opera » Opera TV Content Development Discussions