shithub: m8c

Download patch

ref: 3f8cfa6c11532602d6f3972ef676866ea25981a7
parent: 7d592e540aac1269cf52d458f807caf8e7484bf5
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Sat Apr 19 20:24:39 EDT 2025

Remove old gamepad code

--- a/src/events.c
+++ b/src/events.c
@@ -79,50 +79,3 @@
   }
   return ret_val;
 }
-
-/*
-
-// Returns the currently pressed keys to main
-input_msg_s input_get_msg(config_params_s *conf) {
-
-
-
-  // Query for SDL events
-  handle_sdl_events(conf);
-
-  if (!keyjazz_enabled && keycode == (key_start | key_select | key_opt | key_edit)) {
-    key = (input_msg_s){special, msg_reset_display, 0, 0};
-  }
-
-  if (key.type == normal) {
-    //Normal input keys go through some event-based manipulation in
-    //   handle_sdl_events(), the value is stored in keycode variable
-
-    return input;
-  }
-  // Special event keys already have the correct keycode baked in
-  return key;
-}
-
-
-
-// Handles SDL input events
-static void handle_sdl_events(const config_params_s *conf) {
-
-  static int prev_key_analog = 0;
-
-  SDL_Event event;
-
-  // Read joysticks
-  const int key_analog = gamecontrollers_handle_buttons(conf);
-  if (prev_key_analog != key_analog) {
-    keycode = key_analog;
-    prev_key_analog = key_analog;
-  }
-
-  const input_msg_s gamepad_msg = gamecontrollers_handle_special_messages(conf);
-  if (gamepad_msg.type == special) {
-    key = gamepad_msg;
-  }
-}
-*/
\ No newline at end of file
--