mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Add love.localechanged callback.
This commit is contained in:
@@ -551,6 +551,9 @@ Message *Event::convertJoystickEvent(const SDL_Event &e) const
|
|||||||
msg = new Message("joystickremoved", vargs);
|
msg = new Message("joystickremoved", vargs);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SDL_LOCALECHANGED:
|
||||||
|
msg = new Message("localechanged");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,6 +120,9 @@ function love.createhandlers()
|
|||||||
displayrotated = function (display, orient)
|
displayrotated = function (display, orient)
|
||||||
if love.displayrotated then return love.displayrotated(display, orient) end
|
if love.displayrotated then return love.displayrotated(display, orient) end
|
||||||
end,
|
end,
|
||||||
|
localechanged = function ()
|
||||||
|
if love.localechanged then return love.localechanged() end
|
||||||
|
end,
|
||||||
}, {
|
}, {
|
||||||
__index = function(self, name)
|
__index = function(self, name)
|
||||||
error("Unknown event: " .. name)
|
error("Unknown event: " .. name)
|
||||||
|
|||||||
Reference in New Issue
Block a user