input: don't assign analog stick as dpad by default for PSX core.

This commit is contained in:
Sorgelig
2021-12-01 20:44:12 +08:00
parent 063cb52da1
commit 9c3510d449
2 changed files with 3 additions and 2 deletions

View File

@@ -130,14 +130,14 @@ void map_joystick(uint32_t *map, uint32_t *mmap)
map[SYS_BTN_DOWN] = mmap[SYS_BTN_DOWN] & 0xFFFF;
map[SYS_BTN_UP] = mmap[SYS_BTN_UP] & 0xFFFF;
if (mmap[SYS_AXIS_X])
if (mmap[SYS_AXIS_X] && !is_psx())
{
uint32_t key = KEY_EMU + (((uint16_t)mmap[SYS_AXIS_X]) << 1);
map[SYS_BTN_LEFT] = (key << 16) | map[SYS_BTN_LEFT];
map[SYS_BTN_RIGHT] = ((key+1) << 16) | map[SYS_BTN_RIGHT];
}
if (mmap[SYS_AXIS_Y])
if (mmap[SYS_AXIS_Y] && !is_psx())
{
uint32_t key = KEY_EMU + (((uint16_t)mmap[SYS_AXIS_Y]) << 1);
map[SYS_BTN_UP] = (key << 16) | map[SYS_BTN_UP];

View File

@@ -283,6 +283,7 @@ char is_archie();
char is_gba();
char is_c64();
char is_st();
char is_psx();
char is_arcade();
#define HomeDir(x) user_io_get_core_path(x)