mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 22:32:23 +00:00
(PS3) Make use of ssnes_set_default_keybinds in ps3/main.c
This commit is contained in:
parent
331d596940
commit
55d621e062
@ -538,6 +538,7 @@ void ssnes_input_set_default_keybinds(unsigned player)
|
||||
g_settings.input.binds[player][i].id = i;
|
||||
g_settings.input.binds[player][i].joykey = ssnes_default_keybind_lut[i];
|
||||
}
|
||||
g_settings.input.dpad_emulation[player] = DPAD_EMULATION_LSTICK;
|
||||
}
|
||||
|
||||
void ssnes_input_set_default_keybind_names_for_emulator(void)
|
||||
|
@ -27,6 +27,13 @@ enum keybind_set_id
|
||||
KEYBIND_DEFAULT
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
DPAD_EMULATION_NONE,
|
||||
DPAD_EMULATION_LSTICK,
|
||||
DPAD_EMULATION_RSTICK
|
||||
};
|
||||
|
||||
#if defined(__CELLOS_LV2__)
|
||||
#include "../ps3/ps3_input.h"
|
||||
enum ps3_device_id
|
||||
|
@ -115,14 +115,7 @@ static void set_default_settings(void)
|
||||
ssnes_default_keybind_lut[RETRO_DEVICE_ID_JOYPAD_R] = ssnes_platform_keybind_lut[PS3_DEVICE_ID_JOYPAD_R1];
|
||||
|
||||
for(uint32_t x = 0; x < MAX_PLAYERS; x++)
|
||||
{
|
||||
for(uint32_t y = 0; y < SSNES_FIRST_META_KEY; y++)
|
||||
{
|
||||
g_settings.input.binds[x][y].id = y;
|
||||
g_settings.input.binds[x][y].joykey = ssnes_default_keybind_lut[y];
|
||||
}
|
||||
g_settings.input.dpad_emulation[x] = DPAD_EMULATION_LSTICK;
|
||||
}
|
||||
ssnes_input_set_default_keybinds(x);
|
||||
|
||||
// g_console
|
||||
g_console.block_config_read = true;
|
||||
|
@ -33,13 +33,6 @@
|
||||
#define LIGHTBLUE 0xFFFFE0E0U
|
||||
#define LIGHTORANGE 0xFFE0EEFFu
|
||||
|
||||
enum
|
||||
{
|
||||
DPAD_EMULATION_NONE,
|
||||
DPAD_EMULATION_LSTICK,
|
||||
DPAD_EMULATION_RSTICK
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
EXTERN_LAUNCHER_SALAMANDER,
|
||||
|
Loading…
x
Reference in New Issue
Block a user