diff options
author | Gyuhwan Park <unstabler@unstabler.pl> | 2022-05-27 11:15:33 +0300 |
---|---|---|
committer | Gyuhwan Park <unstabler@unstabler.pl> | 2022-05-27 11:15:33 +0300 |
commit | 2c28adf381048074fec4100fecd36336524da0d2 (patch) | |
tree | 68272125b65261cee12feafa353d7be76d0af9f1 | |
parent | 7c60c626191cfc9d7ca5f52ee1f9a7654fabfb70 (diff) |
feature: send mouse wheel event
-rw-r--r-- | ProjectionThread.cpp | 17 |
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; } |