@@ -29,12 +29,6 @@ extern void x11Paste(int);
2929extern void clipboard_init();
3030extern void clipboard_exit();
3131extern void x11ClipboardReset();
32- extern void mouse_capture_init();
33- extern void mouse_capture_exit();
34- extern void mouse_capture_unlock();
35- extern void mouse_capture_start_or_unlock();
36- extern void mouse_recording_init();
37- extern void mouse_recording_exit();
3832extern void x11SendBackspace(int n, int timeout);
3933extern void x11SendShiftR();
4034extern void x11SendShiftLeft(int n, int r, int timeout);
@@ -58,19 +52,6 @@ func init() {
5852 C .setXIgnoreErrorHandler ()
5953}
6054
61- //export mouse_move_handler
62- func mouse_move_handler () {
63- onMouseMove ()
64- }
65-
66- //export mouse_click_handler
67- func mouse_click_handler () {
68- onMouseClick ()
69- }
70-
71- var onMouseMove func ()
72- var onMouseClick func ()
73-
7455func x11StartWindowInspector () {
7556 C .x11StartWindowInspector ()
7657}
@@ -79,48 +60,6 @@ func x11StopWindowInspector() {
7960 C .x11StopWindowInspector ()
8061}
8162
82- func startMouseRecording () {
83- C .mouse_recording_init ()
84- }
85-
86- func stopMouseRecording () {
87- C .mouse_recording_exit ()
88- }
89-
90- func startMouseCapturing () {
91- mcapMutex .Lock ()
92- defer mcapMutex .Unlock ()
93- if ! mcapRunning {
94- C .mouse_capture_init ()
95- mcapRunning = true
96- }
97- }
98-
99- func stopMouseCapturing () {
100- mcapMutex .RLock ()
101- defer mcapMutex .RUnlock ()
102- if mcapRunning {
103- C .mouse_capture_exit ()
104- }
105- }
106-
107- func mouseCaptureStartOrUnlock () {
108- mcapMutex .Lock ()
109- defer mcapMutex .Unlock ()
110- if ! mcapRunning {
111- C .mouse_capture_start_or_unlock ()
112- mcapRunning = true
113- }
114- }
115-
116- func mouseCaptureUnlock () {
117- mcapMutex .RLock ()
118- defer mcapMutex .RUnlock ()
119- if mcapRunning {
120- C .mouse_capture_unlock ()
121- }
122- }
123-
12463func x11Copy (str string ) {
12564 cs := C .CString (str )
12665 defer C .free (unsafe .Pointer (cs ))
0 commit comments