logo
pub unsafe fn get_input_bitmasks(callback: retro_environment_t) -> bool
Expand description

Unstable Boolean value that indicates whether or not the frontend supports input bitmasks being returned by retro_input_state_t. The advantage of this is that retro_input_state_t has to be only called once to grab all button states instead of multiple times.

If it returns true, you can pass RETRO_DEVICE_ID_JOYPAD_MASK as id to retro_input_state_t (make sure device is set to RETRO_DEVICE_JOYPAD). It will return a bitmask of all the digital buttons.

This feature is unstable and guarded by the unstable-env-commands feature flag.

Please be advised that this feature might change without further notice and no guarantees about its stability can be made.