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
JOYSTICK.H
Package: Joystick.zip [view]
Upload User: lllw2006
Upload Date: 2007-01-05
Package Size: 39k
Code Size: 1k
Category:
Game Program
Development Platform:
DOS
- /*
- ** Header file for joystick library.
- **
- ** This file is part of:
- **
- ** Joystick Library for Dos.
- ** Version: 1.1
- **
- ** Last modified: June 15th, 1997
- **
- ** (C) 1997 Simone Zanella Productions.
- **
- ** E-mail: szanella@dsi.unive.it
- ** zanella@prometeo.it
- **
- ** Web: http://www.dsi.unive.it/~szanella/index.htm
- ** http://members.tripod.com/~szanella/index.htm
- **
- ** --------------------------------------------------------
- **
- ** This is freeware: use it as you like, but ALWAYS include
- ** the original author's name in the docs of your program.
- **
- ** --------------------------------------------------------
- */
- /* Bit maps for ReadJoystick */
- #define JOY_UP 0x01
- #define JOY_DN 0x02
- #define JOY_LT 0x04
- #define JOY_RT 0x08
- #define JOY_AF 0x10
- #define JOY_BF 0x20
- #define JOY_CF 0x40
- #define JOY_DF 0x80
- #define JOY_EF 0x100
- #define JOY_FF 0x200
- /* Flags for mode (function InstallJoystick) */
- #define JOY_2BUTTONS 0
- #define JOY_4BUTTONS 1
- #define JOY_6BUTTONS 2
- /* Maps for values returned by InstallJoystick, flags for skipjoy parameter */
- #define JOY_NONE 0
- #define JOY_FIRST 1
- #define JOY_SECOND 2
- #define JOY_BOTH 3
- /* Public functions to read joystick(s) */
- extern unsigned char InstallJoystick(const unsigned char mode, const unsigned char skipjoy, const char * calibfile);
- extern void ReadJoystick(unsigned int *first, unsigned int *second);