Changed HWB board driver to Buttons driver, to allow for the support of future boards...
[pub/USBasp.git] / Demos / Device / Mouse / Mouse.c
index 669b576..7fff291 100644 (file)
@@ -81,7 +81,7 @@ int main(void)
        /* Hardware Initialization */\r
        Joystick_Init();\r
        LEDs_Init();\r
-       HWB_Init();\r
+       Buttons_Init();\r
        \r
        /* Millisecond timer initialization, with output compare interrupt enabled for the idle timing */\r
        OCR0A  = 0x7D;\r
@@ -305,7 +305,7 @@ void CreateMouseReport(USB_MouseReport_Data_t* ReportData)
        if (JoyStatus_LCL & JOY_PRESS)\r
          ReportData->Button  = (1 << 0);\r
          \r
-       if (HWB_GetStatus())\r
+       if (Buttons_GetStatus() & BUTTONS_BUTTON1)\r
          ReportData->Button |= (1 << 1);\r
 }\r
 \r