Changeset 1875a0c in mainline for uspace/drv/bus/usb/usbmouse/mouse.c


Ignore:
Timestamp:
2011-06-21T19:10:20Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
022d9f67
Parents:
a9d85df
Message:

input server improvements

  • integrate legacy port mouse drivers (PS/2, ADB) into the input server (to be on par with the legacy keyboard drivers)
  • create generic port/protocol layers for the mouse in the input server
  • rename the "hid_in" namespace to "hid" namespace (hid_in/input was rather redundant)
  • rename the mouse event IPC messages to be more consistent with the keyboard event messages
  • rename input server ops structure members to be more generic (parse_scancode → parse)
  • cstyle changes (newlines, comments, printouts)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmouse/mouse.c

    ra9d85df r1875a0c  
    3838#include <errno.h>
    3939#include <str_error.h>
    40 #include <ipc/mouse.h>
     40#include <ipc/mouseev.h>
    4141#include <async.h>
    4242#include "mouse.h"
     
    8686                       
    8787                        async_exch_t *exch = async_exchange_begin(mouse->console_sess);
    88                         async_req_2_0(exch, MEVENT_MOVE, -shift_x / 10, -shift_y / 10);
     88                        async_req_2_0(exch, MOUSEEV_MOVE_EVENT, -shift_x / 10, -shift_y / 10);
    8989                        async_exchange_end(exch);
    9090                }
     
    9393                       
    9494                        async_exch_t *exch = async_exchange_begin(mouse->console_sess);
    95                         async_req_2_0(exch, MEVENT_BUTTON, 1, 1);
    96                         async_req_2_0(exch, MEVENT_BUTTON, 1, 0);
     95                        async_req_2_0(exch, MOUSEEV_BUTTON_EVENT, 1, 1);
     96                        async_req_2_0(exch, MOUSEEV_BUTTON_EVENT, 1, 0);
    9797                        async_exchange_end(exch);
    9898                }
Note: See TracChangeset for help on using the changeset viewer.