[−][src]Function smash::app::lua_bind::ControlModule::get_stick_y
pub unsafe extern "C" fn get_stick_y(
arg1: *mut BattleObjectModuleAccessor
) -> f32
Returns the current y-axis position of the main control stick in a -1 to 1 range. (I.E. -1 = all the way down, 1 = all the way up, 0 = neutral)
Arguments
module_accessor
- Pointer to BattleObjectModuleAccessor
Example
// if you are holding down during a taunt, take 2 points of damage if ControlModule::get_stick_y(module_accessor) < -0.5 && StatusModule::status_kind(module_accessor) == *FIGHTER_STATUS_KIND_APPEAL { DamageModule::add_damage(module_accessor, 2.0, 0); }