# SDL: Fix for Amazon Fire TV relative mouse mode (#16349)

**URL:** <https://discourse.libsdl.org/t/sdl-fix-for-amazon-fire-tv-relative-mouse-mode-16349/69371>\
**Category:** SDL Commits\
**Created:** [September 21, 2026, 11:12pm UTC](https://discourse.libsdl.org/t/sdl-fix-for-amazon-fire-tv-relative-mouse-mode-16349/69371 "2026-09-21T23:12:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [September 21, 2026, 11:12pm UTC](https://discourse.libsdl.org/t/sdl-fix-for-amazon-fire-tv-relative-mouse-mode-16349/69371/1 "2026-09-21T23:12:55Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/00b1f0f9dcbfdf7c4f6a61f87550a53425a1c8a4>

```diff
From 00b1f0f9dcbfdf7c4f6a61f87550a53425a1c8a4 Mon Sep 17 00:00:00 2001
From: Rachel Blackman <[EMAIL REDACTED]>
Date: Mon, 21 Sep 2026 12:30:03 -0700
Subject: [PATCH] Fix for Amazon Fire TV relative mouse mode (#16349)

---
 .../app/src/main/java/org/libsdl/app/SDLActivity.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
index 1e5065c563fa0..64bf2471541cd 100644
--- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
+++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
@@ -1633,6 +1633,13 @@ public static boolean handleKeyEvent(View v, int keyCode, KeyEvent event, InputC
         int source = event.getSource();
         InputDevice device = InputDevice.getDevice(deviceId);
 
+ if ((event.getFlags() & KeyEvent.FLAG_FALLBACK) != 0) {
+ // If this is a fallback event -- e.g., the mouse is being turned into dpad navigational keys 
+ // just eat it, since that's almost never what we actually want to have happen. This will 
+ // happen with Logitech mice on Amazon Fire TV devices and some Samsung devices.
+ return true; 
+ }
+
         if (source == InputDevice.SOURCE_UNKNOWN) {
             if (device != null) {
                 source = device.getSources();

```
