I have ported my old project “pNesX” game console emulator to the nucleo.

Dependencies:   SDFileSystem mbed

Embed: (wiki syntax)

« Back to documentation index

USBHostGamepad Class Reference

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

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.