Changeset 8edec53 in mainline for uspace/srv/hid/input/input.c


Ignore:
Timestamp:
2021-10-25T17:51:10Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
91ece11b
Parents:
805a149
Message:

Support double-click

Needed to open Navigator entries using the mouse.

File:
1 edited

Legend:

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

    r805a149 r8edec53  
    11/*
     2 * Copyright (c) 2021 Jiri Svoboda
    23 * Copyright (c) 2006 Josef Cejka
    3  * Copyright (c) 2011 Jiri Svoboda
    44 * All rights reserved.
    55 *
     
    311311}
    312312
    313 /** Arbitrate client actiovation */
     313/** Mouse button has been double-clicked. */
     314void mouse_push_event_dclick(mouse_dev_t *mdev, int bnum)
     315{
     316        list_foreach(clients, link, client_t, client) {
     317                if (client->active) {
     318                        async_exch_t *exch = async_exchange_begin(client->sess);
     319                        async_msg_1(exch, INPUT_EVENT_DCLICK, bnum);
     320                        async_exchange_end(exch);
     321                }
     322        }
     323}
     324
     325/** Arbitrate client activation */
    314326static void client_arbitration(void)
    315327{
Note: See TracChangeset for help on using the changeset viewer.