love.audio.getNumSources

love.audio.getNumSources Removed in LÖVE 0.9.0 It has been renamed to love.audio.getSourceCount. Gets the current number of simultaneously playing sources. Function Synopsis numSources = love.audio.getNumSources( ) Arguments None. Returns number numSources The current number of simultaneously playing sources. See Also love.audio

love.audio.getDopplerScale

love.audio.getDopplerScale Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the current global scale factor for velocity-based doppler effects. Function Synopsis scale = love.audio.getDopplerScale( ) Arguments None. Returns number scale The current doppler scale factor. See Also love.audio love.audio.setDopplerScale

love.audio.getDistanceModel

love.audio.getDistanceModel Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the distance attenuation model. Function Synopsis model = love.audio.getDistanceModel( ) Arguments None. Returns DistanceModel model The current distance model. The default is 'inverseclamped'. See Also love.audio

Joystick:setVibration

Joystick:setVibration Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the vibration motor speeds on a Joystick with rumble support. Most common gamepads have this functionality, although not all drivers give proper support. Use Joystick:isVibrationSupported to check. Function Synopsis success = Joystick:setVibration( left, right ) Arguments number left Strength of the left vibration motor on the Joystick. Must be in the range of [0, 1]. number right St

Joystick:isVibrationSupported

Joystick:isVibrationSupported Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether the Joystick supports vibration. Function Synopsis supported = Joystick:isVibrationSupported( ) Arguments None. Returns boolean supported True if rumble / force feedback vibration is supported on this Joystick, false if not. Notes The very first call to this function may take more time than expected because SDL's Haptic / Force Feedback subsystem needs to be initial

Joystick:isGamepadDown

Joystick:isGamepadDown Available since LÖVE 0.9.0 This function is not supported in earlier versions. Checks if a virtual gamepad button on the Joystick is pressed. If the Joystick is not recognized as a Gamepad or isn't connected, then this function will always return false. Function Synopsis anyDown = Joystick:isGamepadDown( button1, button2, button3, ... ) Arguments GamepadButton buttonN The gamepad button to check. Returns boolean anyDown True if any supplied button is down, false

Joystick:isGamepad

Joystick:isGamepad Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether the Joystick is recognized as a gamepad. If this is the case, the Joystick's buttons and axes can be used in a standardized manner across different operating systems and joystick models via Joystick:getGamepadAxis, Joystick:isGamepadDown, love.gamepadpressed, and related functions. LÖVE automatically recognizes most popular controllers with a similar layout to the Xbox 360 control

Joystick:isDown

Joystick:isDown Available since LÖVE 0.9.0 It has been moved from love.joystick.isDown. Checks if a button on the Joystick is pressed. LÖVE 0.9.0 had a bug which required the button indices passed to Joystick:isDown to be 0-based instead of 1-based, for example button 1 would be 0 for this function. It was fixed in 0.9.1. Function Synopsis anyDown = Joystick:isDown( buttonN, ... ) Arguments number buttonN The index of a button to check. Returns boolean anyDown True if any supplied but

Joystick:isConnected

Joystick:isConnected Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether the Joystick is connected. Function Synopsis connected = Joystick:isConnected( ) Arguments None. Returns boolean connected True if the Joystick is currently connected, false otherwise. See Also Joystick love.joystickadded love.joystickremoved

Joystick:getVibration

Joystick:getVibration Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the current vibration motor strengths on a Joystick with rumble support. Function Synopsis left, right = Joystick:getVibration( ) Arguments None. Returns number left Current strength of the left vibration motor on the Joystick. number right Current strength of the right vibration motor on the Joystick. See Also Joystick Joystick:setVibration Joystick:isVibrationSupported