SDL: testcontroller: make sure touchpad touches are visible even at very light pressure

From a95f5f9874c49b3a611003696c93312b7d3de850 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 28 May 2026 09:58:33 -0700
Subject: [PATCH] testcontroller: make sure touchpad touches are visible even
 at very light pressure

---
 test/gamepadutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/gamepadutils.c b/test/gamepadutils.c
index f458961007d6d..9ddfff13fb14b 100644
--- a/test/gamepadutils.c
+++ b/test/gamepadutils.c
@@ -999,7 +999,7 @@ void RenderGamepadImage(GamepadImage *ctx)
                     dst.y -= ctx->button_height / 2;
                     dst.w = ctx->button_width;
                     dst.h = ctx->button_height;
-                    SDL_SetTextureAlphaMod(ctx->button_texture, (Uint8)(finger->pressure * SDL_ALPHA_OPAQUE));
+                    SDL_SetTextureAlphaMod(ctx->button_texture, (Uint8)((0.1f + (finger->pressure * 0.9f)) * SDL_ALPHA_OPAQUE));
                     SDL_RenderTexture(ctx->renderer, ctx->button_texture, NULL, &dst);
                     SDL_SetTextureAlphaMod(ctx->button_texture, SDL_ALPHA_OPAQUE);
                 }