Share this post

Link to post

Share on other sites

Adding support for this effort. Thank you. Just bought a Shield TV and want to use Kodi. Didn't take long to notice the remote profile challenges. Have a Flirc on order so look forward to your work. Thank you.

Share this post

Link to post

Share on other sites

Just completing the info provided by nitewulf and SometingSomethingDarkSide.

BACK | ESC <- it was said to be Backspace but it is ESC

I am trying to map the Search key.

However as already stated by nitewulf there are 2 differet behaviours:

- Global Voice Search: WIN. I can program this, but I don't want this one.

- In App Voice Search: Search (on his Logitech K400r).

This Search button I guess it corresponds with the Virtual Key for Browse Search.

Altough I have been reading the forums and discover that I can chose some codes from the page 12 by using the flirc_util.exe record_api DEC_CODE 102, I cannot figure out which code I should enter here.

I tried with KeyEvent Display application in nVidia, and I can see that the "shield" button or "voice search" corresponds to the code 84 (AKEYCODE_SEARCH)

Share this post

Link to post

Share on other sites

I've been able to get everything working with Harmony/FLIRC and Nvidia Sheild (same Harmony/FLIRC programming also works exactly the same way for my Nexus Player)

I use both Harmony 650 and 880 models, and both work, including back (escape) and home buttons.

Harmony Setup (From Harmony software)

Tell the Harmony software that it's controlling a ViewTV AT-163 device. This will provide ample keys to map with Flirc.

Optionally, map info to the Guide button, map exit to the previous channel button, direction up to up and direction down to down. These are redundant, you will not need to do this to have these functions mapped.

Map stop, pause, skip ahead and skip back buttons like for like (not necessary but more useful)

This works great on both my AndroidTV setups (Shield and Nexus Player), with the usual caveat being that the Home button works the same way it does with the stock controllers; Home from within Kodi goes directly to Home on AndroidTV. This is what I prefer anyway.

Share this post

Link to post

Share on other sites

I've been able to get everything working with Harmony/FLIRC and Nvidia Sheild (same Harmony/FLIRC programming also works exactly the same way for my Nexus Player)

I use both Harmony 650 and 880 models, and both work, including back (escape) and home buttons.

Harmony Setup (From Harmony software)

Tell the Harmony software that it's controlling a ViewTV AT-163 device. This will provide ample keys to map with Flirc.

Optionally, map info to the Guide button, map exit to the previous channel button, direction up to up and direction down to down. These are redundant, you will not need to do this to have these functions mapped.

Map stop, pause, skip ahead and skip back buttons like for like (not necessary but more useful)

This works great on both my AndroidTV setups (Shield and Nexus Player), with the usual caveat being that the Home button works the same way it does with the stock controllers; Home from within Kodi goes directly to Home on AndroidTV. This is what I prefer anyway.

Share this post

Link to post

Share on other sites

I forgot about this thread before buying the Flirc. I guess development in general has been pretty much abandoned since we never saw an official profile for Shield? I'll see what I can do with what has been posted, though

Share this post

Link to post

Share on other sites

I forgot about this thread before buying the Flirc. I guess development in general has been pretty much abandoned since we never saw an official profile for Shield? I'll see what I can do with what has been posted, though

Definitely not. I work at NVIDIA full time. I work on the super computing products though. My buddies in shield gave me a unit to get Flirc support on it but I haven't had time to polish it off.

But that's all going to change. Next Friday is my last day at NVIDIA. I will be working on Flirc full time. Expect a lot more activity soon. This will be one of the main things I do, better Logitech integration and many more profiles.

Share this post

Link to post

Share on other sites

Just found this thread. So I got "back" to work via "ESC" keyboard emulation, thank you!

However, "select/enter" is just broken outside of of Kodi.

Tried: "flirc_util.exe record_api 0 88", and a couple other enter options I could find, but nothing works. I can select things in Android but I cannot use the button for play/pause in any of the streaming apps beside Netflix. Yet the slim remote button or game pad "A" button does work.

Is there currently no work around to emulate the actual Shield game pad "A" button (or the button on the slim remote)? Is this just something that needs a firmware update as the only fix?

I also have another Android issue, I would really like to have a "menu" button. I know this is not implemented on Android TV but I am currently running a bunch of sideloaded apps made for phones on my Shield. When I say "menu" button I mean a button that will bring up the 3 dot menu in apps that do not use the 3 dots (or the 3 line hamburger button).

Share this post

Link to post

Share on other sites

The nVidia Shield TV actually has 2 official control methods. One is the simple "remote" style you've posted here and the other is a more complex "game controller" style that has many more buttons. The game controller comes in the box when you buy a shield so it's fully supported by nVidia.

As you've noticed, the remote is super basic and is missing what most people would consider to be standard media functionality like play/pause, rewind, fast forward, etc. This is why FLIRC is so important to us sheid users, we need to make up for nVidias well-intentioned but flawed minimalist approach!

The biggest thing to me that currently can't be done by FLIRC is volume control. Both the shield remote and shield controller have volume control on them that I'd love to be able to map to my media remote (I'm using the Xbox One Media Remote). Also, the directional buttons setting seem to work for media apps like Kodi and Youtube, but they don't work for some other apps and games.

This is the other controller that I hope you can pull some functionality from:

Here's a few links I've found that may be helpful if you haven't seem them already:

Share this post

Link to post

Share on other sites

First, thanks for picking this up Jason! Just to add on tointerr0bangr's post, the minimum would be the A, B, Y buttons on the controller. The A button works just like the center button on the slim remote and is, obviously, the most important button that needs to be supported. The B button does back in a couple games and apps where the arrow key from the slim remote just exits the app. The Y button is a menu key that is unique to the controller, an example wold be the NBC News and streaming app.The X button doesn't seem to have an important function non-game function but I am still pretty new to the Shield and AndroidTV.

Then, for me, the right analog stick is important as it controls the mouse movement in non-AndroidTV apps.I would add that the right center button on the controller, the one in the sliver area that looks like a right arrow with a line on the left, seems to work as a dedicated play/pause button which the platform really needs. An example would be the Youtube app where pressing the A button (or slim remote center button) brings up the OSD menu where you have to navigate to the button you want to press and then press it. That dedicated play/pause button is one touch play and pause.

Share this post

Link to post

Share on other sites

HID stands for Human Interface (or sometimes Input) Device. It's a family of different USB devices meant for interaction between humans and computers. In case of Flirc it acts as a HID keyboard and HID codes in this case mean hardware identifier each key on a physical keyboard has assigned (it doesn't depend on the character/symbol on the key but rather the physical position of the key on the keyboard, e.g. second row, third key from left).

HID codes are grouped into tables. Each table has its own identifier and purpose. There're tables for standard keyboard keys, for multimedia keys, for joysticks, for mice, etc.

With current Flirc hardware (Flirc USB and Flirc SE) with current firmware you can only use codes that can be sent from the keyboard device. If I understand it correctly this includes only keyboard and multimedia tables and this is what Flirc uses. To use other tables Flirc would need to emulate another HID class (e.g. to use joystick table it would need to also present itself as a HID joystick device in addition to a keyboard one). Jason, if I'm wrong about that don't hesitate to correct this info :).

Share this post

Link to post

Share on other sites

So I can get everything working pretty much except for the Select/OK/A button for certain apps/games (Crossy Road, for example), which sucks because it's the most used button of all.

Shield Controller

Shield Remote

PC Keyboard

D-Pad Up

Direction Up

Arrow Key Up

D-Pad Down

Direction Down

Arrow Key Down

D-Pad Left

Direction Left

Arrow Key Left

D-Pad Right

Direction Right

Arrow Key Right

A / Green

Select / OK

Enter/Return (in most cases), Does not work in all apps.

B / Red

Back

ESC

X / Blue

-

-

Y / Yellow

-

-

Home

Home

Windows Key + Enter/Return

Back

Back

ESC

NVIDIA

Voice Search

?

Volume Up

Volume Up

Volume Up

Volume Down

Volume Down

Volume Down

-

-

Volume Mute (Media Key)

Left Trigger

-

-

Right Trigger

-

-

Left Bumper

-

Rewind (Media Key)

Right Bumper

-

Fast Forward (Media Key)

Start / Pause

-

Play / Pause (Media Key)

-

-

Stop (Media Key)

-

-

Next Track (Media Key)

-

-

Next Track (Media Key)

This is great work and exactly what. Needed. Thank you. This is still on the map, but at the end of this month. Great job, and when I release my new product in the next two weeks, send me a message, you're getting on the house as a thank you.

I can eventually help that one key, which is return. It could be joystick select or something. If anyone else figures it out, they'll get the same gratitude and thank you gift from me.

Again, sorry I haven't been able to help with this. It will be evident why shortly.

Share this post

Link to post

Share on other sites

This is great work and exactly what. Needed. Thank you. This is still on the map, but at the end of this month. Great job, and when I release my new product in the next two weeks, send me a message, you're getting on the house as a thank you.I can eventually help that one key, which is return. It could be joystick select or something. If anyone else figures it out, they'll get the same gratitude and thank you gift from me.

Again, sorry I haven't been able to help with this. It will be evident why shortly.

Yay, thanks!

Would it also help at all to have the android KeyEvent codes? I tried pulling those and found that some are the same across all controllers/keyboards (like the arrow keys) and some have different codes (like back/esc for example) even though they achieve the same action.