mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Add RETRO_ENVIRONMENT_GET_INPUT_DEVICE_CAPABILITIES.
This commit is contained in:
parent
3e8166bfa5
commit
df4d0eb0cf
11
dynamic.c
11
dynamic.c
@ -764,6 +764,17 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case RETRO_ENVIRONMENT_GET_INPUT_DEVICE_CAPABILITIES:
|
||||||
|
{
|
||||||
|
RARCH_LOG("Environ GET_INPUT_DEVICE_CAPABILITIES.\n");
|
||||||
|
uint64_t *mask = (uint64_t*)data;
|
||||||
|
if (driver.input && driver.input->get_capabilities && driver.input_data)
|
||||||
|
*mask = driver.input->get_capabilities(driver.input_data);
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Private extensions for internal use, not part of libretro API.
|
// Private extensions for internal use, not part of libretro API.
|
||||||
case RETRO_ENVIRONMENT_SET_LIBRETRO_PATH:
|
case RETRO_ENVIRONMENT_SET_LIBRETRO_PATH:
|
||||||
RARCH_LOG("Environ (Private) SET_LIBRETRO_PATH.\n");
|
RARCH_LOG("Environ (Private) SET_LIBRETRO_PATH.\n");
|
||||||
|
@ -519,6 +519,13 @@ enum retro_mod
|
|||||||
// struct retro_rumble_interface * --
|
// struct retro_rumble_interface * --
|
||||||
// Gets an interface which is used by a libretro core to set state of rumble motors in controllers.
|
// Gets an interface which is used by a libretro core to set state of rumble motors in controllers.
|
||||||
// A strong and weak motor is supported, and they can be controlled indepedently.
|
// A strong and weak motor is supported, and they can be controlled indepedently.
|
||||||
|
//
|
||||||
|
#define RETRO_ENVIRONMENT_GET_INPUT_DEVICE_CAPABILITIES 24
|
||||||
|
// uint64_t * --
|
||||||
|
// Gets a bitmask telling which device type are expected to be handled properly in a call to retro_input_state_t.
|
||||||
|
// Devices which are not handled or recognized always return 0 in retro_input_state_t.
|
||||||
|
// Example bitmask: caps = (1 << RETRO_DEVICE_JOYPAD) | (1 << RETRO_DEVICE_ANALOG).
|
||||||
|
// Should only be called in retro_run().
|
||||||
|
|
||||||
|
|
||||||
enum retro_rumble_effect
|
enum retro_rumble_effect
|
||||||
|
Loading…
x
Reference in New Issue
Block a user