Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/input.c

    r60ebe63 r8edec53  
    11/*
    2  * Copyright (c) 2022 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * Copyright (c) 2006 Josef Cejka
    44 * All rights reserved.
     
    253253                if (client->active) {
    254254                        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);
    257256                        async_exchange_end(exch);
    258257                }
     
    268267
    269268                        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);
    272270
    273271                        if (dz) {
     
    276274
    277275                                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);
    284279                        }
    285280
     
    297292                        if ((max_x) && (max_y)) {
    298293                                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);
    301295                                async_exchange_end(exch);
    302296                        }
     
    311305                if (client->active) {
    312306                        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);
    315308                        async_exchange_end(exch);
    316309                }
     
    324317                if (client->active) {
    325318                        async_exch_t *exch = async_exchange_begin(client->sess);
    326                         async_msg_2(exch, INPUT_EVENT_DCLICK, mdev->svc_id,
    327                             bnum);
     319                        async_msg_1(exch, INPUT_EVENT_DCLICK, bnum);
    328320                        async_exchange_end(exch);
    329321                }
Note: See TracChangeset for help on using the changeset viewer.