From 16d96f64a32cbe1fa89c40b142298dbd007f2f4d Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sat, 18 Jun 2022 20:19:27 +0200 Subject: [PATCH] Remove unused code --- libretro.c | 40 ----------------------------------- mednafen/git.h | 57 -------------------------------------------------- 2 files changed, 97 deletions(-) diff --git a/libretro.c b/libretro.c index f8f22ae..1b460a9 100644 --- a/libretro.c +++ b/libretro.c @@ -605,46 +605,6 @@ static void DoSimpleCommand(int cmd) } } -static const InputDeviceInputInfoStruct IDII[] = -{ - { "up-x", "UP ↑, X Cursors", 0, IDIT_BUTTON, "down-x", { "right-x", "down-x", "left-x" } }, - { "right-x", "RIGHT →, X Cursors", 3, IDIT_BUTTON, "left-x", { "down-x", "left-x", "up-x" } }, - { "down-x", "DOWN ↓, X Cursors", 1, IDIT_BUTTON, "up-x", { "left-x", "up-x", "right-x" } }, - { "left-x", "LEFT ←, X Cursors", 2, IDIT_BUTTON, "right-x", { "up-x", "right-x", "down-x" } }, - - { "up-y", "UP ↑, Y Cur: MUST NOT = X CURSORS", 4, IDIT_BUTTON, "down-y", { "right-y", "down-y", "left-y" } }, - { "right-y", "RIGHT →, Y Cur: MUST NOT = X CURSORS", 7, IDIT_BUTTON, "left-y", { "down-y", "left-y", "up-y" } }, - { "down-y", "DOWN ↓, Y Cur: MUST NOT = X CURSORS", 5, IDIT_BUTTON, "up-y", { "left-y", "up-y", "right-y" } }, - { "left-y", "LEFT ←, Y Cur: MUST NOT = X CURSORS", 6, IDIT_BUTTON, "right-y", { "up-y", "right-y", "down-y" } }, - - { "start", "Start", 8, IDIT_BUTTON, NULL }, - { "a", "A", 10, IDIT_BUTTON_CAN_RAPID, NULL }, - { "b", "B", 9, IDIT_BUTTON_CAN_RAPID, NULL }, -}; - -static InputDeviceInfoStruct InputDeviceInfo[] = -{ - { - "gamepad", - "Gamepad", - NULL, - NULL, - sizeof(IDII) / sizeof(InputDeviceInputInfoStruct), - IDII, - } -}; - -static const InputPortInfoStruct PortInfo[] = -{ - { "builtin", "Built-In", sizeof(InputDeviceInfo) / sizeof(InputDeviceInfoStruct), InputDeviceInfo, "gamepad" } -}; - -static InputInfoStruct InputInfo = -{ - sizeof(PortInfo) / sizeof(InputPortInfoStruct), - PortInfo -}; - static bool update_audio = false; static bool update_video = false; diff --git a/mednafen/git.h b/mednafen/git.h index d4f7d8d..51b636a 100644 --- a/mednafen/git.h +++ b/mednafen/git.h @@ -13,63 +13,6 @@ enum MDFN_ROTATE270 }; -typedef enum -{ - IDIT_BUTTON, // 1-bit - IDIT_BUTTON_CAN_RAPID, // 1-bit - IDIT_BUTTON_BYTE, // 8-bits, Button as a byte instead of a bit. - IDIT_X_AXIS, // (mouse) 32-bits, signed, fixed-point: 1.15.16 - in-screen/window range: [0.0, nominal_width) - IDIT_Y_AXIS, // (mouse) 32-bits, signed, fixed-point: 1.15.16 - in-screen/window range: [0.0, nominal_height) - IDIT_X_AXIS_REL, // (mouse) 32-bits, signed - IDIT_Y_AXIS_REL, // (mouse) 32-bits, signed - IDIT_BYTE_SPECIAL, - IDIT_BUTTON_ANALOG, // 32-bits, 0 - 32767 - IDIT_RUMBLE, // 32-bits, lower 8 bits are weak rumble(0-255), next 8 bits are strong rumble(0-255), 0=no rumble, 255=max rumble. Somewhat subjective, too... - // May extend to 16-bit each in the future. - // It's also rather a special case of game module->driver code communication. -} InputDeviceInputType; - -typedef struct -{ - const char *SettingName; // No spaces, shouldbe all a-z0-9 and _. Definitely no ~! - const char *Name; - /*const InputDeviceInputVB VirtButton;*/ - const int ConfigOrder; // Configuration order during in-game config process, -1 for no config. - const InputDeviceInputType Type; - const char *ExcludeName; // SettingName of a button that can't be pressed at the same time as this button - // due to physical limitations. - - const char *RotateName[3]; // 90, 180, 270 -} InputDeviceInputInfoStruct; - -typedef struct -{ - const char *ShortName; - const char *FullName; - const char *Description; - - //struct InputPortInfoStruct *PortExpanderDeviceInfo; - const void *PortExpanderDeviceInfo; // DON'T USE, IT'S NOT IMPLEMENTED PROPERLY CURRENTLY. - int NumInputs; // Usually just the number of buttons....OR if PortExpanderDeviceInfo is non-NULL, it's the number of input - // ports this port expander device provides. - const InputDeviceInputInfoStruct *IDII; -} InputDeviceInfoStruct; - -typedef struct -{ - const char *ShortName; - const char *FullName; - int NumTypes; // Number of unique input devices available for this input port - InputDeviceInfoStruct *DeviceInfo; - const char *DefaultDevice; // Default device for this port. -} InputPortInfoStruct; - -typedef struct -{ - int InputPorts; - const InputPortInfoStruct *Types; -} InputInfoStruct; - struct MemoryPatch; struct CheatFormatStruct