Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/ulalaca-xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGyuhwan Park <unstabler@unstabler.pl>2022-05-27 11:15:33 +0300
committerGyuhwan Park <unstabler@unstabler.pl>2022-05-27 11:15:33 +0300
commit2c28adf381048074fec4100fecd36336524da0d2 (patch)
tree68272125b65261cee12feafa353d7be76d0af9f1
parent7c60c626191cfc9d7ca5f52ee1f9a7654fabfb70 (diff)
feature: send mouse wheel event
-rw-r--r--ProjectionThread.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/ProjectionThread.cpp b/ProjectionThread.cpp
index 8ebac61..eabc558 100644
--- a/ProjectionThread.cpp
+++ b/ProjectionThread.cpp
@@ -114,16 +114,17 @@ void ProjectionThread::handleEvent(XrdpEvent &event) {
});
return;
}
-
+
+ case XrdpEvent::MOUSE_WHEEL_UP: {
+ _ipcConnection.writeMessage(TYPE_EVENT_MOUSE_WHEEL, ULIPCMouseWheelEvent {
+ 0, -56, 0
+ });
+ return;
+ }
case XrdpEvent::MOUSE_WHEEL_DOWN: {
- LOG(LOG_LEVEL_DEBUG, "TODO: WHEEL_DOWN (%d)", (int) event.param1);
- /*
- writeMessage(MessageType::OUT_MOUSE_WHEEL_EVENT, MouseWheelEvent {
- MouseButtonEvent::,
- MouseButtonEvent::BUTTON_RIGHT,
- 0
+ _ipcConnection.writeMessage(TYPE_EVENT_MOUSE_WHEEL, ULIPCMouseWheelEvent {
+ 0, 56, 0
});
- */
return;
}