Changes in uspace/srv/hid/input/input.c [4c6fd56:df1a019] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/input.c
r4c6fd56 rdf1a019 1 1 /* 2 * Copyright (c) 2023 Jiri Svoboda3 2 * Copyright (c) 2006 Josef Cejka 3 * Copyright (c) 2011 Jiri Svoboda 4 4 * All rights reserved. 5 5 * … … 253 253 if (client->active) { 254 254 async_exch_t *exch = async_exchange_begin(client->sess); 255 async_msg_5(exch, INPUT_EVENT_KEY, kdev->svc_id, 256 ev.type, ev.key, ev.mods, ev.c); 255 async_msg_4(exch, INPUT_EVENT_KEY, ev.type, ev.key, ev.mods, ev.c); 257 256 async_exchange_end(exch); 258 257 } … … 268 267 269 268 if ((dx) || (dy)) 270 async_msg_3(exch, INPUT_EVENT_MOVE, 271 mdev->svc_id, dx, dy); 269 async_msg_2(exch, INPUT_EVENT_MOVE, dx, dy); 272 270 273 271 if (dz) { … … 276 274 277 275 for (unsigned int i = 0; i < 3; i++) 278 async_msg_5(exch, INPUT_EVENT_KEY, 279 0 /* XXX kbd_id */, 280 KEY_PRESS, code, 0, 0); 281 282 async_msg_5(exch, INPUT_EVENT_KEY, KEY_RELEASE, 283 0 /* XXX kbd_id */, code, 0, 0); 276 async_msg_4(exch, INPUT_EVENT_KEY, KEY_PRESS, code, 0, 0); 277 278 async_msg_4(exch, INPUT_EVENT_KEY, KEY_RELEASE, code, 0, 0); 284 279 } 285 280 … … 297 292 if ((max_x) && (max_y)) { 298 293 async_exch_t *exch = async_exchange_begin(client->sess); 299 async_msg_5(exch, INPUT_EVENT_ABS_MOVE, 300 mdev->svc_id, x, y, max_x, max_y); 294 async_msg_4(exch, INPUT_EVENT_ABS_MOVE, x, y, max_x, max_y); 301 295 async_exchange_end(exch); 302 296 } … … 311 305 if (client->active) { 312 306 async_exch_t *exch = async_exchange_begin(client->sess); 313 async_msg_3(exch, INPUT_EVENT_BUTTON, mdev->svc_id, 314 bnum, press); 307 async_msg_2(exch, INPUT_EVENT_BUTTON, bnum, press); 315 308 async_exchange_end(exch); 316 309 } … … 318 311 } 319 312 320 /** Mouse button has been double-clicked. */ 321 void mouse_push_event_dclick(mouse_dev_t *mdev, int bnum) 322 { 323 list_foreach(clients, link, client_t, client) { 324 if (client->active) { 325 async_exch_t *exch = async_exchange_begin(client->sess); 326 async_msg_2(exch, INPUT_EVENT_DCLICK, mdev->svc_id, 327 bnum); 328 async_exchange_end(exch); 329 } 330 } 331 } 332 333 /** Arbitrate client activation */ 313 /** Arbitrate client actiovation */ 334 314 static void client_arbitration(void) 335 315 { … … 661 641 kbd_add_dev(&chardev_port, &stty_ctl); 662 642 #endif 663 #if defined(UARCH_arm64) && defined(MACHINE_hikey960)664 kbd_add_dev(&chardev_port, &stty_ctl);665 #endif666 643 /* Silence warning on abs32le about kbd_add_dev() being unused */ 667 644 (void) kbd_add_dev; … … 878 855 { 879 856 errno_t rc; 880 loc_srv_t *srv;881 857 882 858 if (argc < 2) { … … 902 878 async_set_fallback_port_handler(client_connection, NULL); 903 879 904 rc = loc_server_register(NAME , &srv);880 rc = loc_server_register(NAME); 905 881 if (rc != EOK) { 906 882 printf("%s: Unable to register server\n", NAME); … … 909 885 910 886 service_id_t service_id; 911 rc = loc_service_register( srv,argv[1], &service_id);887 rc = loc_service_register(argv[1], &service_id); 912 888 if (rc != EOK) { 913 889 printf("%s: Unable to register service %s\n", NAME, argv[1]);
Note:
See TracChangeset
for help on using the changeset viewer.