Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/dxgsg8/dxInput8.h

Go to the documentation of this file.
00001 // Filename: dxInput8.h
00002 // Created by:  blllyjo (07Oct99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef DXINPUT8_H
00020 #define DXINPUT8_H
00021 
00022 #define DIRECTINPUT_VERSION 0x800
00023 #include <dinput.h>
00024 typedef vector<DIDEVICEINSTANCE> DI_DeviceInfos;
00025 typedef vector<DIDEVICEOBJECTINSTANCE> DI_DeviceObjInfos;
00026 
00027 class DInput8Info {
00028 public:
00029  DInput8Info(void);
00030  ~DInput8Info(void);
00031  bool InitDirectInput(void);
00032  bool CreateJoystickOrPad(HWND hWnd);
00033  bool ReadJoystick(int devnum, DIJOYSTATE2 &js);
00034 
00035  HINSTANCE _hDInputDLL;
00036  UINT_PTR  _JoystickPollTimer;
00037  LPDIRECTINPUT8 _pDInput8;
00038  DI_DeviceInfos _DevInfos;
00039  // arrays for all created devices.  Should probably put these together in a struct,
00040  // along with the data fmt info
00041  vector<LPDIRECTINPUTDEVICE8> _DeviceList;
00042  vector<DIDEVCAPS> _DevCaps;
00043 };
00044 
00045 #endif

Generated on Fri May 2 00:37:17 2003 for Panda by doxygen1.3