Changeset 60ebe63 in mainline for uspace/srv/hid/display/seat.c


Ignore:
Timestamp:
2022-11-08T21:20:23Z (18 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7bcd15f
Parents:
3a6d44b7
Message:

Store positioning device ID in position events

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/seat.c

    r3a6d44b7 r60ebe63  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    364364        if (event->type == PTD_PRESS || event->type == PTD_RELEASE ||
    365365            event->type == PTD_DCLICK) {
    366                 pevent.pos_id = 0;
     366                pevent.pos_id = event->pos_id;
    367367                switch (event->type) {
    368368                case PTD_PRESS:
     
    395395                seat->pntpos = npos;
    396396
    397                 pevent.pos_id = 0;
     397                pevent.pos_id = event->pos_id;
    398398                pevent.type = POS_UPDATE;
    399399                pevent.btn_num = 0;
     
    423423                seat->pntpos = npos;
    424424
    425                 pevent.pos_id = 0;
     425                pevent.pos_id = event->pos_id;
    426426                pevent.type = POS_UPDATE;
    427427                pevent.btn_num = 0;
Note: See TracChangeset for help on using the changeset viewer.