Skip to content

Commit

Permalink
Deps: Update fork
Browse files Browse the repository at this point in the history
  • Loading branch information
univrsal committed Jan 4, 2025
1 parent 082e4ad commit 06ab4d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "deps/libuiohook"]
path = deps/libuiohook
url = https://github.com/kwhat/libuiohook
url = https://github.com/TolikPylypchuk/libuiohook
7 changes: 4 additions & 3 deletions src/network/websocket_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ QString serialize_uiohook(const uiohook_event *e, const std::string &source_name

switch (e->type) {
case EVENT_KEY_TYPED:
obj["char"] = QString(e->data.keyboard.keychar);
// convert wchar_t to QString
obj["char"] = QString::fromWCharArray(&e->data.keyboard.keychar, 1);

/* fallthrough */
case EVENT_KEY_PRESSED:
case EVENT_KEY_RELEASED:
Expand Down Expand Up @@ -93,9 +95,8 @@ QString serialize_uiohook(const uiohook_event *e, const std::string &source_name
obj["event_type"] = QString(ev_to_str(e->type));
obj["time"] = int(e->time);
obj["mask"] = e->mask;
obj["clicks"] = e->data.wheel.clicks;
obj["type"] = e->data.wheel.type;
obj["amount"] = e->data.wheel.amount;
obj["delta"] = e->data.wheel.delta;
obj["rotation"] = e->data.wheel.rotation;
obj["direction"] = e->data.wheel.direction;
obj["x"] = e->data.wheel.x;
Expand Down

0 comments on commit 06ab4d7

Please sign in to comment.