mirror of
https://github.com/kepler155c/opus
synced 2025-12-20 15:18:06 +00:00
better text entry
This commit is contained in:
@@ -119,6 +119,12 @@ function input:translate(event, code, p1, p2)
|
||||
local buttons = { 'mouse_click', 'mouse_rightclick' }
|
||||
self.mch = buttons[code]
|
||||
self.mfired = nil
|
||||
return {
|
||||
code = input:toCode('mouse_down', 255),
|
||||
button = code,
|
||||
x = p1,
|
||||
y = p2,
|
||||
}
|
||||
|
||||
elseif event == 'mouse_drag' then
|
||||
self.mfired = true
|
||||
|
||||
Reference in New Issue
Block a user