Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
a8ba89c4
Commit
a8ba89c4
authored
May 07, 2020
by
deuce
Browse files
Use CIOLIB_MOUSEPTR_ARROW in mouse tracking mode.
parent
ce4aaeb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/syncterm/term.c
src/syncterm/term.c
+5
-0
No files found.
src/syncterm/term.c
View file @
a8ba89c4
...
...
@@ -96,6 +96,7 @@ void setup_mouse_events(struct mouse_state *ms)
ciomouse_addevent
(
CIOLIB_BUTTON_1_DRAG_END
);
ciomouse_addevent
(
CIOLIB_BUTTON_2_CLICK
);
ciomouse_addevent
(
CIOLIB_BUTTON_3_CLICK
);
mousepointer
(
CIOLIB_MOUSEPTR_ARROW
);
return
;
case
MM_NORMAL_TRACKING
:
ciomouse_addevent
(
CIOLIB_BUTTON_1_PRESS
);
...
...
@@ -106,6 +107,7 @@ void setup_mouse_events(struct mouse_state *ms)
ciomouse_addevent
(
CIOLIB_BUTTON_3_RELEASE
);
ciomouse_addevent
(
CIOLIB_BUTTON_4_PRESS
);
ciomouse_addevent
(
CIOLIB_BUTTON_5_PRESS
);
mousepointer
(
CIOLIB_MOUSEPTR_ARROW
);
return
;
case
MM_BUTTON_EVENT_TRACKING
:
ciomouse_addevent
(
CIOLIB_BUTTON_1_PRESS
);
...
...
@@ -117,6 +119,7 @@ void setup_mouse_events(struct mouse_state *ms)
ciomouse_addevent
(
CIOLIB_BUTTON_4_PRESS
);
ciomouse_addevent
(
CIOLIB_BUTTON_5_PRESS
);
ciomouse_addevent
(
CIOLIB_MOUSE_MOVE
);
mousepointer
(
CIOLIB_MOUSEPTR_ARROW
);
return
;
case
MM_ANY_EVENT_TRACKING
:
ciomouse_addevent
(
CIOLIB_BUTTON_1_PRESS
);
...
...
@@ -128,6 +131,7 @@ void setup_mouse_events(struct mouse_state *ms)
ciomouse_addevent
(
CIOLIB_BUTTON_4_PRESS
);
ciomouse_addevent
(
CIOLIB_BUTTON_5_PRESS
);
ciomouse_addevent
(
CIOLIB_MOUSE_MOVE
);
mousepointer
(
CIOLIB_MOUSEPTR_ARROW
);
return
;
default:
break
;
...
...
@@ -139,6 +143,7 @@ void setup_mouse_events(struct mouse_state *ms)
ciomouse_addevent
(
CIOLIB_BUTTON_2_CLICK
);
ciomouse_addevent
(
CIOLIB_BUTTON_3_CLICK
);
ciomouse_addevent
(
CIOLIB_BUTTON_4_PRESS
);
mousepointer
(
CIOLIB_MOUSEPTR_BAR
);
}
#if defined(__BORLANDC__)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment