retro_input_state_t

Type Alias retro_input_state_t 

Source
pub type retro_input_state_t = Option<unsafe extern "C" fn(port: c_uint, device: c_uint, index: c_uint, id: c_uint) -> i16>;
Expand description

Queries for input for player ‘port’. device will be masked with RETRO_DEVICE_MASK.

Specialization of devices such as RETRO_DEVICE_JOYPAD_MULTITAP that have been set with retro_set_controller_port_device() will still use the higher level RETRO_DEVICE_JOYPAD to request input.

Aliased Type§

pub enum retro_input_state_t {
    None,
    Some(unsafe extern "C" fn(u32, u32, u32, u32) -> i16),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(u32, u32, u32, u32) -> i16)

Some value of type T.