HIDDMouseDriver_ChangePoints
Default mainpageat91libusbdevicehid-mouseHIDDMouseDriver_ChangePoints
Description Source Call Graph
Start Line: 367
unsigned char HIDDMouseDriver_ChangePoints(unsigned char bmButtons, signed char deltaX, signed char deltaY)
{
    hiddMouseDriver.inputReport.bmButtons = (bmButtons & 0x07)
                                          | HIDDMouse_TAG;
    hiddMouseDriver.inputReport.bX = deltaX;
    hiddMouseDriver.inputReport.bY = deltaY;
    // Send input report through the interrupt IN endpoint
    return USBD_Write(HIDDMouseDriverDescriptors_INTERRUPTIN,
                      &(hiddMouseDriver.inputReport),
                      sizeof(HIDDMouseInputReport),
                      0,
                      0);
}