Changeset f7fb2b21 in mainline for uspace/lib/display/include


Ignore:
Timestamp:
2020-02-10T19:01:42Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b43edabe
Parents:
287688f2
Message:

Propagate position event to display clients

Location:
uspace/lib/display/include/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/include/types/display.h

    r287688f2 rf7fb2b21  
    3939#include <fibril_synch.h>
    4040#include <io/kbd_event.h>
     41#include <io/pos_event.h>
    4142#include <stdint.h>
    4243
     
    5859typedef struct {
    5960        void (*kbd_event)(void *, kbd_event_t *);
     61        void (*pos_event)(void *, pos_event_t *);
    6062} display_wnd_cb_t;
    6163
  • uspace/lib/display/include/types/display/event.h

    r287688f2 rf7fb2b21  
    3737
    3838#include <io/kbd_event.h>
     39#include <io/pos_event.h>
     40
     41typedef enum {
     42        wev_kbd,
     43        wev_pos
     44} display_wnd_ev_type_t;
    3945
    4046typedef struct {
    41         kbd_event_t kbd_event;
     47        display_wnd_ev_type_t etype;
     48        union {
     49                kbd_event_t kbd;
     50                pos_event_t pos;
     51        } ev;
    4252} display_wnd_ev_t;
    4353
Note: See TracChangeset for help on using the changeset viewer.