madmicio / LG-WebOS-Remote-Control

Remote Control for LG TV WebOS
393 stars 74 forks source link

Haptic Feedback Request #97

Open OCT0PUSCRIME opened 2 years ago

OCT0PUSCRIME commented 2 years ago

Are there any plans to implement haptic feedback on this card? I feel it would improve the user experience. It looks like it is possible based on: https://companion.home-assistant.io/docs/integrations/haptics/

kevinhaas commented 1 year ago

I read a comment from the creator that implies he feels the ripple effect on the buttons is enough, but that's not the same as haptic feedback on a touch display. You can add this yourself by using the Vibration API and adding it where needed, for example:

_button(button) {
    this.hass.callService("webostv", "button", {
        entity_id: this.config.entity,
        button: button
    });
    window.navigator.vibrate(100);
}
OCT0PUSCRIME commented 1 year ago

I read a comment from the creator that implies he feels the ripple effect on the buttons is enough, but that's not the same as haptic feedback on a touch display. You can add this yourself by using the Vibration API and adding it where needed, for example:

_button(button) {
    this.hass.callService("webostv", "button", {
        entity_id: this.config.entity,
        button: button
    });
    window.navigator.vibrate(100);
}

Maybe I will give it a go. I definitely disagree that the ripple effect is enough. There is plenty of evidence that haptic feedback improves touch accuracy, speed, and user satisfaction. Ex; https://faculty.washington.edu/leahkf/pubs/WHC2015-Ma.pdf