Changeset 8edec53 in mainline for uspace/lib/c/generic/io/input.c


Ignore:
Timestamp:
2021-10-25T17:51:10Z (3 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/lib/c/generic/io/input.c

    r805a149 r8edec53  
    11/*
    2  * Copyright (c) 2012 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    164164}
    165165
     166static void input_ev_dclick(input_t *input, ipc_call_t *call)
     167{
     168        int bnum;
     169        errno_t rc;
     170
     171        bnum = ipc_get_arg1(call);
     172
     173        rc = input->ev_ops->dclick(input, bnum);
     174        async_answer_0(call, rc);
     175}
     176
    166177static void input_cb_conn(ipc_call_t *icall, void *arg)
    167178{
     
    196207                        input_ev_button(input, &call);
    197208                        break;
     209                case INPUT_EVENT_DCLICK:
     210                        input_ev_dclick(input, &call);
     211                        break;
    198212                default:
    199213                        async_answer_0(&call, ENOTSUP);
Note: See TracChangeset for help on using the changeset viewer.