We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3703 - [PATCH] Missing media keys support on Amazon Fire TV remote control
Summary: [PATCH] Missing media keys support on Amazon Fire TV remote control
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.1
Hardware: ARM Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-15 20:05 UTC by Holger Schemel
Modified: 2017-07-20 17:47 UTC (History)
0 users

See Also:


Attachments
patch (5.08 KB, text/plain)
2017-07-15 20:05 UTC, Holger Schemel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Schemel 2017-07-15 20:05:37 UTC
Created attachment 2799 [details]
patch

Summary: This patch adds support for key events for the "rewind" and "fast forward" media keys on the Amazon Fire TV remote control.

How to reproduce the problem: Run Android build of SDL2 application on the Amazon Fire TV (tested with "stick" version) and log key events.

Expected behaviour: Every key pressed on the Fire TV remote control should result in a corresponding key event (pressed/released).

Observed behaviour: Of the bottom row of buttons on the Fire TV remote control, only the "play/pause" (middle) button generates a key event, while the "rewind" (left) and "fast forward" (right) buttons to not generate any event at all.

The attached patch adds support for these two missing buttons/keys.

Note 1: Some missing definitions were added for the already existing key codes SDL_SCANCODE_APP1 and SDL_SCANCODE_APP2 (to keep up the correct order of enumerations / array positions when adding the two new key codes).

Note 2: Definitions in "scancodes_linux.h" and "scancodes_xfree86.h" (to also add support for these keys on other platforms) were added without testing. However, I was unable to find corresponding definitions for these two media keys for Windows and Mac OS X.

Note 3: I have also updated the (broken) link to the USB usage page standard PDF document (comment in "include/SDL_scancode.h").
Comment 1 Sam Lantinga 2017-07-20 17:47:07 UTC
Added, thanks!
https://hg.libsdl.org/SDL/rev/504c67e71589

I changed the names of the scancodes to be more verbose and match the other platforms.