Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Nucleo_Ex04_USBPAD by
USBHostGamepad Class Reference
A class to communicate a USB MIDI device. More...
#include <USBHostGamepad.h>
Inherits IUSBEnumerator.
Public Member Functions | |
| USBHostGamepad () | |
| Constructor. | |
| bool | connect () |
| Try to connect a gamepad device. | |
| bool | connected () |
| Check if a gamepad is connected. | |
Detailed Description
A class to communicate a USB MIDI device.
Definition at line 46 of file USBHostGamepad.h.
Constructor & Destructor Documentation
| USBHostGamepad | ( | ) |
Constructor.
Definition at line 26 of file USBHostGamepad.cpp.
Member Function Documentation
| bool connect | ( | ) |
Try to connect a gamepad device.
- Returns:
- true if connection was successful
Definition at line 43 of file USBHostGamepad.cpp.
| bool connected | ( | ) |
Check if a gamepad is connected.
- Returns:
- true if a gamepad is connected
Definition at line 39 of file USBHostGamepad.cpp.
Generated on Tue Jul 12 2022 21:16:08 by
1.7.2
