~ubuntu-branches/ubuntu/karmic/rott/karmic-proposed

« back to all changes in this revision

Viewing changes to rt_swift.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabian Greffrath
  • Date: 2008-01-27 20:00:00 UTC
  • mfrom: (1.1.1 upstream) (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080127200000-myle9y0099o45sfv
Tags: 1.0+dfsg-2
* debian/patches/01-custom-datapath.dpatch,
  debian/patches/13-improve-makefile.dpatch:
  + Changed DATADIR back to "/usr/share/games/rott/".

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (C) 1994-1995 Apogee Software, Ltd.
 
3
 
 
4
This program is free software; you can redistribute it and/or
 
5
modify it under the terms of the GNU General Public License
 
6
as published by the Free Software Foundation; either version 2
 
7
of the License, or (at your option) any later version.
 
8
 
 
9
This program is distributed in the hope that it will be useful,
 
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
12
 
 
13
See the GNU General Public License for more details.
 
14
 
 
15
You should have received a copy of the GNU General Public License
 
16
along with this program; if not, write to the Free Software
 
17
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
18
 
 
19
*/
 
20
#ifndef _rt_swift_public
 
21
#define _rt_swift_public
 
22
 
 
23
//***************************************************************************
 
24
//
 
25
// Public header for RT_SWIFT.C.
 
26
//
 
27
//***************************************************************************
 
28
 
 
29
#include "rt_playr.h"
 
30
 
 
31
//***************************************************************************
 
32
//
 
33
// PROTOTYPES
 
34
//
 
35
//***************************************************************************
 
36
 
 
37
int SWIFT_Initialize (void);
 
38
//
 
39
// Test for presence of SWIFT extensions and SWIFT device
 
40
// Returns 1 (TRUE) if SWIFT features are available, 0 otherwise.
 
41
// Remember to call SWIFT_Terminate() if SWIFT_Initialize succeeds!
 
42
//
 
43
 
 
44
void SWIFT_Terminate (void);
 
45
//
 
46
// Free resources required for SWIFT support.  If SWIFT_Initialize has
 
47
// not been called, or returned FALSE, this function does nothing.
 
48
// SWIFT_Terminate should always be called at some time after a call to
 
49
// SWIFT_Initialize has returned TRUE.
 
50
//
 
51
 
 
52
int SWIFT_GetAttachedDevice (void);
 
53
//
 
54
// Returns the device-type code for the attached SWIFT device, if any.
 
55
//
 
56
 
 
57
int SWIFT_GetStaticDeviceInfo (SWIFT_StaticData far *psd);
 
58
//
 
59
// Reads static device data.                                            
 
60
//
 
61
 
 
62
void SWIFT_Get3DStatus (SWIFT_3DStatus far *pstat);
 
63
//
 
64
// Read the current input state of the device.                          
 
65
//
 
66
 
 
67
void SWIFT_TactileFeedback (int d, int on, int off);
 
68
//
 
69
// Generates tactile feedback to user.                                  
 
70
// d   = duration of tactile burst, in milliseconds.                    
 
71
// on  = motor on-time per cycle, in milliseconds.                      
 
72
// off = motor off-time per cycle, in milliseconds.                     
 
73
//
 
74
 
 
75
unsigned SWIFT_GetDynamicDeviceData (void);
 
76
//
 
77
// Returns Dynamic Device Data word - see SDD_* above                   
 
78
//
 
79
 
 
80
 
 
81
#endif