Ignore:
Timestamp:
2011-12-28T11:46:33Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
70172dc4
Parents:
acac2ef
Message:

input: Move mouse wheel handling to input service.

File:
1 edited

Legend:

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

    racac2ef redb3cf2  
    152152
    153153/*----------------------------------------------------------------------------*/
    154 
     154#if 0
    155155static void usb_mouse_send_wheel(const usb_mouse_t *mouse_dev, int wheel)
    156156{
     
    177177        }
    178178}
    179 
     179#endif
    180180/*----------------------------------------------------------------------------*/
    181181
     
    221221            &hid_dev->report, USB_HIDUT_USAGE_GENERIC_DESKTOP_WHEEL);
    222222
    223         if ((shift_x != 0) || (shift_y != 0)) {
     223        if (shift_x || shift_y || wheel) {
    224224                async_exch_t *exch =
    225225                    async_exchange_begin(mouse_dev->mouse_sess);
    226226                if (exch != NULL) {
    227                         async_req_2_0(exch, MOUSEEV_MOVE_EVENT, shift_x, shift_y);
     227                        async_msg_3(exch, MOUSEEV_MOVE_EVENT,
     228                            shift_x, shift_y, wheel);
    228229                        async_exchange_end(exch);
    229230                }
    230231        }
    231 
     232#if 0
    232233        if (wheel != 0)
    233                 usb_mouse_send_wheel(mouse_dev, wheel);
    234 
     234                (void)usb_mouse_send_wheel(mouse_dev, wheel);
     235#endif
    235236        /* Buttons */
    236237        usb_hid_report_path_t *path = usb_hid_report_path();
Note: See TracChangeset for help on using the changeset viewer.