#include "wave-windows/wave-windows.h"
#include <dinput.h>
Go to the source code of this file.
Classes | |
struct | gamepad::device_caps_t |
information about a device, as determined from enumeration of objects More... | |
Namespaces | |
namespace | gamepad |
Defines | |
#define | DI_VERIFY(exp, hr, msg) |
Functions | |
void | gamepad::checkDIError (IN HRESULT hr) |
helper method to inspect Windows DirectInput error codes | |
void | gamepad::writeDevCaps (IO std::ostream &stream, IN const DIDEVCAPS &dc) |
void | gamepad::writeDevInstance (IO std::ostream &stream, IN const DIDEVICEINSTANCEA &di) |
void | gamepad::writeDataFormat (IO std::ostream &stream, IN const DIDATAFORMAT &df) |
void | gamepad::writeObjectDataFormat (IO std::ostream &stream, IN const DIOBJECTDATAFORMAT &odf) |
void | gamepad::writeStateDebug (IO std::ostream &stream, IN const DIDATAFORMAT &df, IN const byte_t *buffer) |
void | gamepad::writeState (IO std::ostream &stream, IN const DIDATAFORMAT &df, IN const byte_t *buffer) |
byte_t * | gamepad::getDataFormatForDevice (IN IDirectInputDevice8 *device, OUT device_caps_t &dc) |
This routine will inspect a given device, and then construct a custom DIDATAFORMAT struct to specify how data should be retrieved. | |
int32_t | gamepad::getAxisValue (IN const byte_t *data, IN const device_caps_t &dc, IN int axisIndex) |
int32_t | gamepad::getPOVValue (IN const byte_t *data, IN const device_caps_t &dc, IN int povIndex) |
dword_t | gamepad::getButtonValue (IN const byte_t *data, IN const device_caps_t &dc, IN int buttonIndex) |
std::ostream & | operator<< (IO std::ostream &stream, IN const DIDEVCAPS &dc) |
std::ostream & | operator<< (IO std::ostream &stream, IN const DIDEVICEINSTANCEA &di) |
std::ostream & | operator<< (IO std::ostream &stream, IN const DIOBJECTDATAFORMAT &odf) |
std::ostream & | operator<< (IO std::ostream &stream, IN const DIDATAFORMAT &df) |
#define DI_VERIFY | ( | exp, | ||
hr, | ||||
msg | ||||
) |
if (!(exp)) { \ DPRINTF("DirectInput API call failed!"); \ gamepad::checkDIError(hr); \ ASSERT_THROW(false && (exp), msg); \ }
Definition at line 54 of file di-diagnostics.h.
std::ostream& operator<< | ( | IO std::ostream & | stream, | |
IN const DIDEVCAPS & | dc | |||
) | [inline] |
Definition at line 127 of file di-diagnostics.h.
std::ostream& operator<< | ( | IO std::ostream & | stream, | |
IN const DIDEVICEINSTANCEA & | di | |||
) | [inline] |
Definition at line 133 of file di-diagnostics.h.
std::ostream& operator<< | ( | IO std::ostream & | stream, | |
IN const DIOBJECTDATAFORMAT & | odf | |||
) | [inline] |
Definition at line 139 of file di-diagnostics.h.
std::ostream& operator<< | ( | IO std::ostream & | stream, | |
IN const DIDATAFORMAT & | df | |||
) | [inline] |
Definition at line 145 of file di-diagnostics.h.