- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
t3dlib2.h
资源名称:Source.rar [点击查看]
上传用户:husern
上传日期:2018-01-20
资源大小:42486k
文件大小:2k
源码类别:
游戏
开发平台:
Visual C++
- // T3DLIB2.H - Header file for T3DLIB2.CPP game engine library
- // watch for multiple inclusions
- #ifndef T3DLIB2
- #define T3DLIB2
- // DEFINES ////////////////////////////////////////////////
- // MACROS /////////////////////////////////////////////////
- // TYPES //////////////////////////////////////////////////
- // PROTOTYPES /////////////////////////////////////////////
- // input
- int DInput_Init(void);
- void DInput_Shutdown(void);
- int DInput_Init_Joystick(int min_x=-256, int max_x=256,
- int min_y=-256, int max_y=256, int dead_band = 10);
- int DInput_Init_Mouse(void);
- int DInput_Init_Keyboard(void);
- int DInput_Read_Joystick(void);
- int DInput_Read_Mouse(void);
- int DInput_Read_Keyboard(void);
- void DInput_Release_Joystick(void);
- void DInput_Release_Mouse(void);
- void DInput_Release_Keyboard(void);
- // GLOBALS ////////////////////////////////////////////////
- // EXTERNALS //////////////////////////////////////////////
- extern HWND main_window_handle; // save the window handle
- extern HINSTANCE main_instance; // save the instance
- // directinput globals
- extern LPDIRECTINPUT8 lpdi; // dinput object
- extern LPDIRECTINPUTDEVICE8 lpdikey; // dinput keyboard
- extern LPDIRECTINPUTDEVICE8 lpdimouse; // dinput mouse
- extern LPDIRECTINPUTDEVICE8 lpdijoy; // dinput joystick
- extern GUID joystickGUID; // guid for main joystick
- extern char joyname[80]; // name of joystick
- // these contain the target records for all di input packets
- extern UCHAR keyboard_state[256]; // contains keyboard state table
- extern DIMOUSESTATE mouse_state; // contains state of mouse
- extern DIJOYSTATE joy_state; // contains state of joystick
- extern int joystick_found; // tracks if stick is plugged in
- #endif