aenemapy / premiumizerapp

Android TV app for Premiumize based on the Premiumizer Kodi addon
8 stars 0 forks source link

Support for 3rd party remotes on Nvidia Shield #2

Open vellencw opened 4 years ago

vellencw commented 4 years ago

Hi again!

The second thing that I would love to see added is support for 3rd party remotes on the Nvidia Shield. I currently use this remote:

https://www.amazon.com/gp/product/B074W87CZ2/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

It works in all the other apps I have, but none of the buttons do anything in your new app. I'm currently using the original remote to navigate your app, but I sure hate that stupid thing!

Thanks again for your work!

aenemapy commented 4 years ago

mmm sounds like it is not recognized by the remote interface... I use an air mouse on a tv box and it works for me. I need to map it I am afraid... if you are able to debug the buttons for me I will be able to integrate it. You can use this apk: https://github.com/chrisboyle/keytest/downloads

Press a button and note the key mapped action event names

vellencw commented 4 years ago

Thanks again, you're really killing it with the updates! Here's the info for the necessary buttons on my remote:

UP arrow--(Keycode 19) KeyEvent {action=ACTION_DOWN, keyCode=KEYCODE_DPAD_UP, scanCode=103, metaState=META_CAPS_LOCK_ON, flags=0x8, repeatCount=0, eventTime=1130261257, downTime=1130261257, deviceId=5, source=0x101}

Down Arrow--(Keycode 20) KeyEvent {action=ACTION_DOWN, keyCode=KEYCODE_DPAD_DOWN, scanCode=108, metaState=META_CAPS_LOCK_ON, flags=0x8, repeatCount=0, eventTime=1130613689, downTime=1130613689, deviceId=5, source=0x101}

Left Arrow--(Keycode 21) KeyEvent {action=ACTION_DOWN, keyCode=KEYCODE_DPAD_LEFT, scanCode=105, metaState=META_CAPS_LOCK_ON, flags=0x8, repeatCount=0, eventTime=1130760897, downTime=1130760897, deviceId=5, source=0x101}

Right Arrow--(Keycode 22) KeyEvent {action=ACTION_DOWN, keyCode=KEYCODE_DPAD_RIGHT, scanCode=106, metaState=META_CAPS_LOCK_ON, flags=0x8, repeatCount=0, eventTime=1130871777, downTime=1130871777, deviceId=5, source=0x101}

Select/OK Center Button--(Keycode 66) KeyEvent {action=ACTION_DOWN, keyCode=KEYCODE_ENTER, scanCode=28, metaState=META_CAPS_LOCK_ON, flags=0x8, repeatCount=0, eventTime=1130946585, downTime=1130946585, deviceId=5, source=0x101}

Back Button (already works I think)--(Keycode 4) KeyEvent {action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=1131068665, downTime=1131068665, deviceId=3, source=0x301}

vellencw commented 4 years ago

Somehow my 3rd party remote started working with the app tonight. No idea what the problem was or what happened to fix it. Thanks!