2
Copyright (C) 1994-1995 Apogee Software, Ltd.
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.
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.
13
See the GNU General Public License for more details.
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.
20
#ifndef _rt_swift_public
21
#define _rt_swift_public
23
//***************************************************************************
25
// Public header for RT_SWIFT.C.
27
//***************************************************************************
31
//***************************************************************************
35
//***************************************************************************
37
int SWIFT_Initialize (void);
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!
44
void SWIFT_Terminate (void);
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.
52
int SWIFT_GetAttachedDevice (void);
54
// Returns the device-type code for the attached SWIFT device, if any.
57
int SWIFT_GetStaticDeviceInfo (SWIFT_StaticData far *psd);
59
// Reads static device data.
62
void SWIFT_Get3DStatus (SWIFT_3DStatus far *pstat);
64
// Read the current input state of the device.
67
void SWIFT_TactileFeedback (int d, int on, int off);
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.
75
unsigned SWIFT_GetDynamicDeviceData (void);
77
// Returns Dynamic Device Data word - see SDD_* above