Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
t3dlib2.h
Package: Source.rar [view]
Upload User: husern
Upload Date: 2018-01-20
Package Size: 42486k
Code Size: 2k
Category:
Game Program
Development Platform:
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