How to implement rotary event on a keyboard?

How to implement rotary event on a keyboard?

BY 29 Dec 2015 Web Application Development

Hello,

I would like to use the rotarydetent event to change
the keyboard layout but it does not work on the gear s2. For a normal app, I can use
rotarydetent by adding a eventlistener on load.

Things I have tried:

– Write a anonymous function that executes itself. Inside the
function, add the eventlistener.
– Add the document.addEventListener(“rotarydetent”) to onInit or onShow.

Nothing works. I have added input.rotating_bezel in the config file as well.

I would be really appreciate if you can shed some light on this matter.

 

Written by