feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39

Merged
min merged 215 commits from feat/lua-50-games-bundle into main 2026-06-09 21:59:25 +00:00
Showing only changes of commit efff54add2 - Show all commits

View File

@ -2082,7 +2082,7 @@ export function registerRobloxShim(lua, opts) {
if (p.type === 'mouseButton1Up') {
try { playerMouse.Button1Up.Fire(); } catch (_) {}
}
if (p.type === 'keyDown') {
if (p.type === 'keyDown' || p.type === 'keydown') {
const k = String(p.key || '').toLowerCase();
try { playerMouse.KeyDown.Fire(k); } catch (_) {}
// Также фейерим UserInputService.InputBegan с InputObject.
@ -2096,7 +2096,7 @@ export function registerRobloxShim(lua, opts) {
uis.InputBegan.Fire(inputObj, false);
} catch (_) {}
}
if (p.type === 'keyUp') {
if (p.type === 'keyUp' || p.type === 'keyup') {
const k = String(p.key || '').toLowerCase();
try { playerMouse.KeyUp.Fire(k); } catch (_) {}
try {