Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Joystick.cpp File Reference
#include "MemDebug.h"
#include "Joystick.h"
#include "MachineInfo.h"
#include "Game.h"
#include <dinput.h>

Go to the source code of this file.

Macros

#define DIRECTINPUT_VERSION   0x0700
#define JOY_POVUPRIGHT   4500
#define JOY_POVDNRIGHT   13500
#define JOY_POVDNLEFT   22500
#define JOY_POVUPLEFT   31500

Functions

void DirectInputError (const char *msg, HRESULT err)
char * DIErrStr (HRESULT hr)
void ReleaseDirectInput ()
BOOL FAR PASCAL EnumJoystick (LPCDIDEVICEINSTANCE pdinst, LPVOID pvSelect)
bool CreateDevice (int select)

Variables

const int MAX_DEVICES = 8

Macro Definition Documentation

#define DIRECTINPUT_VERSION   0x0700

Definition at line 20 of file Joystick.cpp.

#define JOY_POVDNLEFT   22500

Definition at line 26 of file Joystick.cpp.

#define JOY_POVDNRIGHT   13500

Definition at line 25 of file Joystick.cpp.

#define JOY_POVUPLEFT   31500

Definition at line 27 of file Joystick.cpp.

#define JOY_POVUPRIGHT   4500

Definition at line 24 of file Joystick.cpp.


Function Documentation

bool CreateDevice ( int  select)

Definition at line 233 of file Joystick.cpp.

char * DIErrStr ( HRESULT  hr)

Definition at line 836 of file Joystick.cpp.

void DirectInputError ( const char *  msg,
HRESULT  err 
)

Definition at line 823 of file Joystick.cpp.

BOOL FAR PASCAL EnumJoystick ( LPCDIDEVICEINSTANCE  pdinst,
LPVOID  pvSelect 
)

Definition at line 211 of file Joystick.cpp.

void ReleaseDirectInput ( )

Definition at line 112 of file Joystick.cpp.


Variable Documentation

const int MAX_DEVICES = 8

Definition at line 32 of file Joystick.cpp.