Orxonox  0.0.5 Codename: Arcturus
Macros
Win32JoyStick.cpp File Reference
#include "win32/Win32JoyStick.h"
#include "win32/Win32InputManager.h"
#include "win32/Win32ForceFeedback.h"
#include "OISEvents.h"
#include "OISException.h"
#include <cassert>
#include <cstddef>
#include <wbemidl.h>
#include <oleauto.h>

Macros

#define DIJOFS_BUTTON(n)   (FIELD_OFFSET(DIJOYSTATE2, rgbButtons) + (n))
 
#define DIJOFS_POV(n)   (FIELD_OFFSET(DIJOYSTATE2, rgdwPOV)+(n)*sizeof(DWORD))
 
#define DIJOFS_SLIDER0(n)   (FIELD_OFFSET(DIJOYSTATE2, rglSlider)+(n) * sizeof(LONG))
 
#define DIJOFS_SLIDER1(n)   (FIELD_OFFSET(DIJOYSTATE2, rglVSlider)+(n) * sizeof(LONG))
 
#define DIJOFS_SLIDER2(n)   (FIELD_OFFSET(DIJOYSTATE2, rglASlider)+(n) * sizeof(LONG))
 
#define DIJOFS_SLIDER3(n)   (FIELD_OFFSET(DIJOYSTATE2, rglFSlider)+(n) * sizeof(LONG))
 
#define SAFE_RELEASE(x)
 
#define XINPUT_TRANSLATED_AXIS_COUNT   6
 
#define XINPUT_TRANSLATED_BUTTON_COUNT   12
 

Macro Definition Documentation

#define DIJOFS_BUTTON (   n)    (FIELD_OFFSET(DIJOYSTATE2, rgbButtons) + (n))
#define DIJOFS_POV (   n)    (FIELD_OFFSET(DIJOYSTATE2, rgdwPOV)+(n)*sizeof(DWORD))
#define DIJOFS_SLIDER0 (   n)    (FIELD_OFFSET(DIJOYSTATE2, rglSlider)+(n) * sizeof(LONG))
#define DIJOFS_SLIDER1 (   n)    (FIELD_OFFSET(DIJOYSTATE2, rglVSlider)+(n) * sizeof(LONG))
#define DIJOFS_SLIDER2 (   n)    (FIELD_OFFSET(DIJOYSTATE2, rglASlider)+(n) * sizeof(LONG))
#define DIJOFS_SLIDER3 (   n)    (FIELD_OFFSET(DIJOYSTATE2, rglFSlider)+(n) * sizeof(LONG))
#define SAFE_RELEASE (   x)
Value:
if(x != NULL) \
{ \
x->Release(); \
x = NULL; \
}
#define XINPUT_TRANSLATED_AXIS_COUNT   6
#define XINPUT_TRANSLATED_BUTTON_COUNT   12