mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
remove test for standard mapping in controller detection (#13528)
This commit is contained in:
parent
2c289a6212
commit
6ae1270e5c
@ -30,16 +30,8 @@
|
|||||||
static EM_BOOL rwebpad_gamepad_cb(int event_type,
|
static EM_BOOL rwebpad_gamepad_cb(int event_type,
|
||||||
const EmscriptenGamepadEvent *gamepad_event, void *user_data)
|
const EmscriptenGamepadEvent *gamepad_event, void *user_data)
|
||||||
{
|
{
|
||||||
unsigned vid = 0;
|
unsigned vid = 1;
|
||||||
unsigned pid = 0;
|
unsigned pid = 1;
|
||||||
|
|
||||||
if (strncmp(gamepad_event->mapping, "standard",
|
|
||||||
sizeof(gamepad_event->mapping)) == 0)
|
|
||||||
{
|
|
||||||
/* give a dummy vid/pid for automapping */
|
|
||||||
vid = 1;
|
|
||||||
pid = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (event_type)
|
switch (event_type)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user