shithub: m8c

Download patch

ref: ec574958e234026e8476b0bdecee3b7747369ff3
parent: 61fa136412fcc4504e198cd6d457a7cb57ed17d1
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Wed Nov 24 07:33:29 EST 2021

clean extra includes by clangd and fix default analog joy threshold value

--- a/config.c
+++ b/config.c
@@ -33,7 +33,7 @@
   c.gamepad_start             = SDL_CONTROLLER_BUTTON_START;
   c.gamepad_opt               = SDL_CONTROLLER_BUTTON_B;
   c.gamepad_edit              = SDL_CONTROLLER_BUTTON_A;
-  c.gamepad_analog_threshold  = 32000;
+  c.gamepad_analog_threshold  = 32767;
   return c;
 }
 
--- a/input.c
+++ b/input.c
@@ -2,9 +2,6 @@
 // Released under the MIT licence, https://opensource.org/licenses/MIT
 
 #include <SDL2/SDL.h>
-#include <SDL2/SDL_events.h>
-#include <SDL2/SDL_gamecontroller.h>
-#include <SDL2/SDL_log.h>
 #include <stdio.h>
 
 #include "config.h"
--