mirror of
https://github.com/libretro/beetle-wswan-libretro.git
synced 2024-11-22 23:49:40 +00:00
Remove unused code
This commit is contained in:
parent
067ac9249c
commit
16d96f64a3
40
libretro.c
40
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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user