From 83c20c89439386f31050718c94551d863298cdb9 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 25 Oct 2014 00:30:36 -0400 Subject: Improvements to terminal mouse handling. Emit events for unhandled mouse events and connect to such events in order to focus and resize views. Patch libtermkey with new Win32 PDCurses driver for unified key/mouse input. Update CDK patch to always use libtermkey and to ignore mouse events. Requires Scinterm r97 (changeset 8d1a625c9b4d). Thanks to Chris Emerson for proof of concept code that handles mouse events and for the code that focuses and resizes views. --- scripts/gen_iface.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/gen_iface.lua b/scripts/gen_iface.lua index cf06ff75..49fd747e 100755 --- a/scripts/gen_iface.lua +++ b/scripts/gen_iface.lua @@ -77,6 +77,11 @@ for line in io.lines('../src/scintilla/include/Scintilla.iface') do ::continue:: end +-- Add mouse events from Scinterm manually. +constants[#constants + 1] = 'MOUSE_PRESS=1' +constants[#constants + 1] = 'MOUSE_DRAG=2' +constants[#constants + 1] = 'MOUSE_RELEASE=3' + table.sort(constants) table.sort(functions) table.sort(properties) -- cgit v1.2.3