projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed HWB board driver to Buttons driver, to allow for the support of future boards...
[pub/lufa.git]
/
Demos
/
Device
/
Joystick
/
Joystick.c
diff --git
a/Demos/Device/Joystick/Joystick.c
b/Demos/Device/Joystick/Joystick.c
index
a5c3242
..
b2de42f
100644
(file)
--- a/
Demos/Device/Joystick/Joystick.c
+++ b/
Demos/Device/Joystick/Joystick.c
@@
-58,7
+58,7
@@
int main(void)
/* Hardware Initialization */
\r
Joystick_Init();
\r
LEDs_Init();
\r
/* Hardware Initialization */
\r
Joystick_Init();
\r
LEDs_Init();
\r
-
HWB
_Init();
\r
+
Buttons
_Init();
\r
\r
/* Indicate USB not ready */
\r
UpdateStatus(Status_USBNotReady);
\r
\r
/* Indicate USB not ready */
\r
UpdateStatus(Status_USBNotReady);
\r
@@
-173,7
+173,7
@@
bool GetNextReport(USB_JoystickReport_Data_t* ReportData)
if (JoyStatus_LCL & JOY_PRESS)
\r
ReportData->Button = (1 << 1);
\r
\r
if (JoyStatus_LCL & JOY_PRESS)
\r
ReportData->Button = (1 << 1);
\r
\r
- if (
HWB_GetStatus()
)
\r
+ if (
Buttons_GetStatus() & BUTTONS_BUTTON1
)
\r
ReportData->Button |= (1 << 0);
\r
\r
/* Check if the new report is different to the previous report */
\r
ReportData->Button |= (1 << 0);
\r
\r
/* Check if the new report is different to the previous report */
\r