mirror of
https://github.com/love2d/love.git
synced 2026-08-19 04:06:17 +02:00
some fixes
Fixed duration and love naming conventions.
This commit is contained in:
@@ -515,7 +515,7 @@ bool Joystick::setVibration(float left, float right, float duration)
|
||||
Uint32 length = SDL_HAPTIC_INFINITY;
|
||||
if (duration >= 0.0f)
|
||||
{
|
||||
float maxduration = std::numeric_limits<Uint32>::max() / 1000;
|
||||
float maxduration = (float) (std::numeric_limits<Uint32>::max() / 1000.0);
|
||||
length = Uint32(std::min(duration, maxduration) * 1000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user