feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user