SDL/src/video/android
Sam Lantinga 2008d86696 Fixed bug 3703 - Missing media keys support on Amazon Fire TV remote control
Holger Schemel

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").
2017-07-20 10:46:38 -07:00
..
SDL_androidclipboard.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidclipboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidevents.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidevents.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidgl.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidgl.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidkeyboard.c Fixed bug 3703 - Missing media keys support on Amazon Fire TV remote control 2017-07-20 10:46:38 -07:00
SDL_androidkeyboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidmessagebox.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidmessagebox.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidmouse.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidmouse.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidtouch.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidtouch.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidvideo.c Compile fix for android. 2017-03-14 07:22:08 -07:00
SDL_androidvideo.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_androidwindow.c SDL - add SDL_WINDOW_VULKAN and make Android_CreateWindow only create an EGLSurface when SDL_WINDOW_VULKAN is not present. This makes it so the ANativeWindow* can be used with vkCreateAndroidSurfaceKHR, otherwise it will fail because having both an EGLSurface and VkSurfaceKHR attached to a window is not allowed according to the Vulkan spec: 2017-05-16 06:30:39 -07:00
SDL_androidwindow.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00