[][src]Function smash::app::lua_bind::ControlModule::check_button_trigger

pub unsafe extern "C" fn check_button_trigger(
    arg1: *mut BattleObjectModuleAccessor,
    arg2: c_int
) -> bool

Returns whether or not the current module_accessor has pressed the specified CONTROL_PAD_BUTTON on the same frame this function was run

Arguments

Example

if ControlModule::check_button_trigger(module_accessor, *CONTROL_PAD_BUTTON_JUMP) {
    DamageModule::add_damage(boma, 5.0, 0);
}