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 ForumsYou need to be logged in to post in the forums. If you do not have an account, please sign up first.
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
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.
Why not? Just that's standard keypress. You can for example try out this page for tests: http://unixpapa.com/js/testkey.html
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