1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-20 15:18:06 +00:00

better text entry

This commit is contained in:
kepler155c@gmail.com
2019-03-29 09:56:56 -04:00
parent 30bad69417
commit c9ef150605
7 changed files with 405 additions and 296 deletions

View File

@@ -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