Skip to content

Commit

Permalink
USB Mouse motion speed fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed Dec 11, 2024
1 parent 15b7b9c commit 04fb074
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/usb/usb_hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,12 +823,6 @@ mouse_enq(usb_device_hid *hid, int delta_x, int delta_y, int delta_z, unsigned b
int16_t prev_x, prev_y;

if (hid->device.type == USB_HID_TYPE_MOUSE) {
// scale down the motion
if ((delta_x < -1) || (delta_x > 1))
delta_x /= 2;
if ((delta_y < -1) || (delta_y > 1))
delta_y /= 2;

if (delta_x > 127)
delta_x = 127;
if (delta_y > 127)
Expand Down
3 changes: 0 additions & 3 deletions src/usb/usb_hid_keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#include "usb_common.h"

int
usb_device_hid_handle_data(usb_device_c *device, USBPacket *p);

// one (or more) of our models uses the Report ID field. This is the ID value used.
#define HID_REPORT_ID 1

Expand Down

0 comments on commit 04fb074

Please sign in to comment.