Debian Codegraph @

libsrc/idi/fidi/deanza/gd8i2.for

raw
1 C @(#)gd8i2.for 19.1 (ES0-DMD) 02/25/03 13:55:08
2 C===========================================================================
3 C Copyright (C) 1995 European Southern Observatory (ESO)
4 C
5 C This program is free software; you can redistribute it and/or
6 C modify it under the terms of the GNU General Public License as
7 C published by the Free Software Foundation; either version 2 of
8 C the License, or (at your option) any later version.
9 C
10 C This program is distributed in the hope that it will be useful,
11 C but WITHOUT ANY WARRANTY; without even the implied warranty of
12 C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 C GNU General Public License for more details.
14 C
15 C You should have received a copy of the GNU General Public
16 C License along with this program; if not, write to the Free
17 C Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
18 C MA 02139, USA.
19 C
20 C Corresponding concerning ESO-MIDAS should be addressed as follows:
21 C Internet e-mail: [email protected]
22 C Postal address: European Southern Observatory
23 C Data Management Division
24 C Karl-Schwarzschild-Strasse 2
25 C D 85748 Garching bei Muenchen
26 C GERMANY
27 C===========================================================================
28 C
29 SUBROUTINE GD8041(DISPLAY,LOCNO,JX,JY,IDST)
30 C
31 C++++++++++++++++++++++++++++++++++++++++++++++++++
32 C
33 C.IDENTIFICATION
34 C subroutine IIIGLD version 1.00 880505
35 C K. Banse ESO - Garching
36 C
37 C.KEYWORDS
38 C IDI Locator = joystick, trackball
39 C
40 C.PURPOSE
41 C fulfill the requirements as described in the IDI document
42 C
43 C.ALGORITHM
44 C distinguish between joystick + trackball,
45 C and use DeAnza level-0 software
46 C
47 C.INPUT/OUTPUT
48 C call as IIIGLD(DISPLAY,LOCNO,JX,JY,IDST)
49 C
50 C input par:
51 C DISPLAY: I*4 display id.
52 C LOCNO: I*4 locator number
53 C JX: I*4 x-displacement
54 C JY: I*4 y-displacement
55 C
56 C output par:
57 C IDST: I*4 return status
58 C
59 C.VERSIONS
60 C
61 C--------------------------------------------------
62 C
63 IMPLICIT NONE
64 C
65 INTEGER*4 DISPLAY,LOCNO,JX,JY,IDST
66 INTEGER*4 N1,N
67 C
68 INTEGER*2 UNIT,CONTROL
69 INTEGER*2 RPR
70 C
71 INCLUDE 'MID_INCLUDE:DEANZAH.INC'
72 INCLUDE 'MID_INCLUDE:DEANZAS.INC'
73 INCLUDE 'MID_INCLUDE:IDIDEV.INC'
74 C
75 EXTERNAL RPR
76 C
77 C get unit
78 UNIT = DISPLAY
79 C
80 C for trackball we do the stuff in a separate subroutine
81 IF (QJOYFL.EQ.1) THEN
82 CALL TRKRD(UNIT,JX,JY)
83 ELSE
84 C
85 C get joystick displacement register (reg. 3) from the Deanza
86 CALL IP8QW(RPR,UNIT,DZIOSB,,,CONTROL,2,0,3)
87 JX = IAND(CONTROL,"377) - 128
88 JY = ISHFT(CONTROL,-8) - 128
89 ENDIF
90 C
91 C allright then...
92 IDST = 0
93 RETURN
94 END
95
96 SUBROUTINE GD8044(DISPLAY,EVAL,JJ,IDST)
97 C
98 IMPLICIT NONE
99 C
100 INTEGER*4 DISPLAY,EVAL,JJ,IDST
101 C
102 JJ = 1
103 IDST = 0
104 C
105 RETURN
106 END
107
108 SUBROUTINE GD8045(DISPLAY,EVAL,OUTSTR,JJ,IDST)
109 C
110 IMPLICIT NONE
111 C
112 INTEGER*4 DISPLAY,EVAL,JJ,IDST
113 C
114 CHARACTER*(*) OUTSTR
115 C
116 JJ = LEN(OUTSTR)
117 OUTSTR(1:) = ' '
118 READ(*,10000) OUTSTR
119 IDST = 0
120 RETURN
121 C
122 10000 FORMAT(A)
123 END