Changeset 88d828e in mainline for uspace/srv/hid/display/display.c
- Timestamp:
- 2022-11-09T16:44:28Z (22 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 68704ab
- Parents:
- a6492460
- git-author:
- Jiri Svoboda <jiri@…> (2022-11-09 16:41:51)
- git-committer:
- Jiri Svoboda <jiri@…> (2022-11-09 16:44:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/display.c
ra6492460 r88d828e 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2022 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 445 445 ds_seat_t *seat; 446 446 447 / / TODO Determine which seat the event belongs to448 seat = ds_display_ first_seat(display);447 /* Determine which seat the event belongs to */ 448 seat = ds_display_seat_by_idev(display, event->kbd_id); 449 449 if (seat == NULL) 450 450 return EOK; … … 462 462 ds_seat_t *seat; 463 463 464 / / TODO Determine which seat the event belongs to465 seat = ds_display_ first_seat(display);464 /* Determine which seat the event belongs to */ 465 seat = ds_display_seat_by_idev(display, event->pos_id); 466 466 if (seat == NULL) 467 467 return EOK; … … 522 522 523 523 return list_get_instance(link, ds_seat_t, lseats); 524 } 525 526 /** Get seat which owns the specified input device. 527 * 528 * @param disp Display 529 * @param idev_id Input device ID 530 * @return Seat which owns device with ID @a idev_id or @c NULL if not found 531 */ 532 ds_seat_t *ds_display_seat_by_idev(ds_display_t *disp, ds_idev_id_t idev_id) 533 { 534 // TODO Multi-seat 535 (void) idev_id; 536 537 return ds_display_first_seat(disp); 524 538 } 525 539
Note:
See TracChangeset
for help on using the changeset viewer.