remove test for standard mapping in controller detection (#13528)

This commit is contained in:
Ryan Kuba 2022-01-24 07:31:03 -08:00 committed by GitHub
parent 2c289a6212
commit 6ae1270e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,16 +30,8 @@
static EM_BOOL rwebpad_gamepad_cb(int event_type,
const EmscriptenGamepadEvent *gamepad_event, void *user_data)
{
unsigned vid = 0;
unsigned pid = 0;
if (strncmp(gamepad_event->mapping, "standard",
sizeof(gamepad_event->mapping)) == 0)
{
/* give a dummy vid/pid for automapping */
vid = 1;
pid = 1;
}
unsigned vid = 1;
unsigned pid = 1;
switch (event_type)
{