Hi all
New to this excellent platform, and perhaps a tricky question.
I'm using the ceefax demo app on my android TV, which is such a blast from the past. However, I'd like to adapt the program so it detects the red, Green, Yellow and blue buttons from the remote, as it looks like they would control the "next page" or shortcuts shown onscreen in the ceefax program.
Does anyone have a hint on what I would need to change in the ceefax app to detect these buttons please?
Many thanks
Ian
Android TV - detecting remote control coloured buttons
-
- Posts: 2
- Joined: Sun 23 Mar 2025, 13:32
-
- Posts: 338
- Joined: Tue 18 Jun 2024, 09:32
Re: Android TV - detecting remote control coloured buttons
It all depends on what Android on your TV does with those buttons (if anything).ibellingham wrote: ↑Sun 23 Mar 2025, 18:02 Does anyone have a hint on what I would need to change in the ceefax app to detect these buttons please?
Run the supplied program about.bbc and press each of those buttons; if they are being recognised the associated positive INKEY code will be displayed in the top left-hand corner, and the associated negative INKEY code (if any) in the top right-hand corner.
But don't be too surprised if they're not recognised at all; I'm not sure that I've seen any SDL2 key constants for them.
-
- Posts: 338
- Joined: Tue 18 Jun 2024, 09:32
Re: Android TV - detecting remote control coloured buttons
Here is the list of scancodes recognised by SDL2. As I feared there is no mention of the coloured buttons there; that doesn't mean they definitely aren't going to be recognised, but it's not promising.Richard Russell wrote: ↑Sun 23 Mar 2025, 19:23 But don't be too surprised if they're not recognised at all; I'm not sure that I've seen any SDL2 key constants for them.
-
- Posts: 338
- Joined: Tue 18 Jun 2024, 09:32
Re: Android TV - detecting remote control coloured buttons
It's not directly relevant to the OP's question, I know, but here is how the various buttons on the Amazon Fire TV remote map to the controls in Ceefax.bbc:
You do not have the required permissions to view the files attached to this post.
-
- Posts: 2
- Joined: Sun 23 Mar 2025, 13:32
Re: Android TV - detecting remote control coloured buttons
Thanks for the advice, really appreciated. I'll use the about.bbc code to see if the buttons are recognised, and if not can adapt the ceefax code to buttons that are recognised.