#include "di-diagnostics.h"
#include <iostream>
Go to the source code of this file.
Namespaces | |
namespace | gamepad |
Defines | |
#define | ODFTYPE(token) { DIDFT_ ##token , #token }, |
#define | ODFFLAG(token) { DIDOI_ ##token , #token }, |
#define | DCFLAG(token) { DIDC_ ##token , #token }, |
#define | GUID_ENTRY(g) { GUID_ ## g , "GUID_" #g , &GUID_ ## g }, |
#define | DIE_VALUE(token) case token : DPRINTF(" ...%s", #token ); break; |
Typedefs | |
typedef std::vector < DIOBJECTDATAFORMAT > | gamepad::vec_objdf_t |
Functions | |
static const GUID * | gamepad::getGuidPointer (IN const GUID &rg) |
static const char * | gamepad::getGuidName (IN const GUID *pg) |
static void | gamepad::writeODFType (IO std::ostream &stream, IN dword_t dwType) |
static void | gamepad::writeODFFlags (IO std::ostream &stream, IN dword_t dwFlags) |
static void | gamepad::writeDCFlags (IO std::ostream &stream, IN dword_t dwFlags) |
static BOOL CALLBACK | gamepad::objectCallback (LPCDIDEVICEOBJECTINSTANCE lpddoi, LPVOID pvRef) |
void | gamepad::checkDIError (IN HRESULT hr) |
helper method to inspect Windows DirectInput error codes | |
void | gamepad::writeDevInstance (IO std::ostream &stream, IN const DIDEVICEINSTANCEA &di) |
void | gamepad::writeDevCaps (IO std::ostream &stream, IN const DIDEVCAPS &dc) |
void | gamepad::writeObjectDataFormat (IO std::ostream &stream, IN const DIOBJECTDATAFORMAT &odf) |
void | gamepad::writeDataFormat (IO std::ostream &stream, IN const DIDATAFORMAT &df) |
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::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) |
int32_t | gamepad::getAxisValue (IN const byte_t *data, IN const device_caps_t &dc, IN int axisIndex) |
Variables | |
static const odf_type_entry_t | gamepad::s_odfTypes [] |
static const odf_flag_entry_t | gamepad::s_odfFlags [] |
static const dc_flag_entry_t | gamepad::s_dcFlags [] |
static const guid_entry_t | gamepad::s_guids [] |
#define ODFTYPE | ( | token | ) | { DIDFT_ ##token , #token }, |
Definition at line 44 of file di-diagnostics.cpp.
#define ODFFLAG | ( | token | ) | { DIDOI_ ##token , #token }, |
Definition at line 74 of file di-diagnostics.cpp.
#define DCFLAG | ( | token | ) | { DIDC_ ##token , #token }, |
Definition at line 93 of file di-diagnostics.cpp.
#define GUID_ENTRY | ( | g | ) | { GUID_ ## g , "GUID_" #g , &GUID_ ## g }, |
Definition at line 124 of file di-diagnostics.cpp.
#define DIE_VALUE | ( | token | ) | case token : DPRINTF(" ...%s", #token ); break; |
Definition at line 311 of file di-diagnostics.cpp.