Changeset 6fbd1f9 in mainline for uspace/srv/hid/display/input.c


Ignore:
Timestamp:
2024-10-14T16:30:24Z (9 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
514108e
Parents:
b3b79981
Message:

Combine successive move/abs. move events in display server

Helps avoid the cursor lagging if re-drawing cannot keep up
with the rate of move events.

File:
1 edited

Legend:

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

    rb3b79981 r6fbd1f9  
    11/*
    2  * Copyright (c) 2022 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4040#include <str_error.h>
    4141#include "display.h"
     42#include "ievent.h"
    4243#include "input.h"
    4344#include "main.h"
     
    8788
    8889        ds_display_lock(disp);
    89         rc = ds_display_post_kbd_event(disp, &event);
     90        rc = ds_ievent_post_kbd(disp, &event);
    9091        ds_display_unlock(disp);
    9192        return rc;
     
    104105
    105106        ds_display_lock(disp);
    106         rc = ds_display_post_ptd_event(disp, &event);
     107        rc = ds_ievent_post_ptd(disp, &event);
    107108        ds_display_unlock(disp);
    108109        return rc;
     
    126127
    127128        ds_display_lock(disp);
    128         rc = ds_display_post_ptd_event(disp, &event);
     129        rc = ds_ievent_post_ptd(disp, &event);
    129130        ds_display_unlock(disp);
    130131        return rc;
     
    145146
    146147        ds_display_lock(disp);
    147         rc = ds_display_post_ptd_event(disp, &event);
     148        rc = ds_ievent_post_ptd(disp, &event);
    148149        ds_display_unlock(disp);
    149150        return rc;
     
    163164
    164165        ds_display_lock(disp);
    165         rc = ds_display_post_ptd_event(disp, &event);
     166        rc = ds_ievent_post_ptd(disp, &event);
    166167        ds_display_unlock(disp);
    167168        return rc;
Note: See TracChangeset for help on using the changeset viewer.