mirror of
https://github.com/libretro/beetle-pce-libretro.git
synced 2024-11-27 02:10:52 +00:00
minor changes + remove extra/trailing spaces
This commit is contained in:
parent
d61e6e5740
commit
fa735f9afa
18
libretro.cpp
18
libretro.cpp
@ -632,7 +632,6 @@ static void MDFN_printf(const char *format, ...)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
static void ReadM3U(std::vector<std::string> &file_list, std::string path, unsigned depth = 0)
|
||||
{
|
||||
std::string dir_path;
|
||||
@ -1083,11 +1082,10 @@ static void check_variables(bool loaded)
|
||||
setting_pce_psgrevision = 1;
|
||||
}
|
||||
|
||||
char key[256];
|
||||
key[0] = '\0';
|
||||
char key[64] = {0};
|
||||
|
||||
var.key = key ;
|
||||
for (int i = 0 ; i < MAX_PLAYERS ; i++)
|
||||
var.key = key;
|
||||
for (int i = 0; i < MAX_PLAYERS; i++)
|
||||
{
|
||||
snprintf(key, sizeof(key), "pce_default_joypad_type_p%d", i + 1);
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
|
||||
@ -1095,7 +1093,7 @@ static void check_variables(bool loaded)
|
||||
if (strcmp(var.value, "2 Buttons") == 0)
|
||||
avpad6_enable[i] = 0;
|
||||
else if (strcmp(var.value, "6 Buttons") == 0)
|
||||
avpad6_enable[i] ^= (1 << 12);
|
||||
avpad6_enable[i] = (1 << RETRO_DEVICE_ID_JOYPAD_L2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1244,7 +1242,6 @@ static void check_variables(bool loaded)
|
||||
else if(strcmp(var.value, "always") == 0)
|
||||
Turbo_Toggling = 2;
|
||||
|
||||
|
||||
int mode = (Turbo_Toggling == 2);
|
||||
for(int lcv = 0; lcv < MAX_PLAYERS; lcv++)
|
||||
{
|
||||
@ -1520,7 +1517,7 @@ static void update_input(void)
|
||||
if (libretro_supports_bitmasks)
|
||||
joy_bits[j] = input_state_cb(j, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_MASK);
|
||||
else
|
||||
{
|
||||
{
|
||||
for (i = 0; i < (RETRO_DEVICE_ID_JOYPAD_R3+1); i++)
|
||||
joy_bits[j] |= input_state_cb(j, RETRO_DEVICE_JOYPAD, 0, i) ? (1 << i) : 0;
|
||||
}
|
||||
@ -1564,18 +1561,17 @@ static void update_input(void)
|
||||
else
|
||||
turbo_toggle_down[j][i] = 0;
|
||||
}
|
||||
else if(i == 12)
|
||||
else if(i == RETRO_DEVICE_ID_JOYPAD_L2)
|
||||
{
|
||||
if(input_state_cb(j, RETRO_DEVICE_JOYPAD, 0, map[i]))
|
||||
{
|
||||
if (avpad6_toggle_down[j] == 0)
|
||||
{
|
||||
avpad6_toggle_down[j] = 1;
|
||||
avpad6_enable[j] ^= (1 << 12);
|
||||
avpad6_enable[j] ^= (1 << RETRO_DEVICE_ID_JOYPAD_L2);
|
||||
|
||||
MDFN_DispMessage("Pad %i %s", j + 1, avpad6_enable[j] ? "6-buttons" : "2-buttons" );
|
||||
|
||||
|
||||
int mode = !avpad6_enable[j] && (Turbo_Toggling == 2);
|
||||
for(int lcv = 0; lcv < MAX_PLAYERS; lcv++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user