1 |
< |
/* Copyright (c) 1997 Silicon Graphics, Inc. */ |
1 |
> |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ SGI"; |
265 |
|
} |
266 |
|
|
267 |
|
|
268 |
+ |
dev_auxcom(cmd, args) /* process an auxiliary command */ |
269 |
+ |
char *cmd, *args; |
270 |
+ |
{ |
271 |
+ |
sprintf(errmsg, "%s: unknown command", cmd); |
272 |
+ |
error(COMMAND, errmsg); |
273 |
+ |
} |
274 |
+ |
|
275 |
+ |
|
276 |
+ |
VIEW * |
277 |
+ |
dev_auxview(n, hvres) /* return nth auxiliary view */ |
278 |
+ |
int n; |
279 |
+ |
int hvres[2]; |
280 |
+ |
{ |
281 |
+ |
if (n) |
282 |
+ |
return(NULL); |
283 |
+ |
hvres[0] = odev.hres; hvres[1] = odev.vres; |
284 |
+ |
return(&odev.v); |
285 |
+ |
} |
286 |
+ |
|
287 |
+ |
|
288 |
|
int |
289 |
|
dev_input() /* get X11 input */ |
290 |
|
{ |
293 |
|
do |
294 |
|
getevent(); |
295 |
|
|
296 |
< |
while (XQLength(ourdisplay) > 0); |
296 |
> |
while (XPending(ourdisplay) > 0); |
297 |
|
|
298 |
+ |
odev.inpready = 0; |
299 |
+ |
|
300 |
|
return(inpresflags); |
301 |
|
} |
302 |
|
|
324 |
|
{ |
325 |
|
qtUpdate(); |
326 |
|
rayqleft = RAYQLEN; |
327 |
< |
return(XPending(ourdisplay)); |
327 |
> |
return(odev.inpready = XPending(ourdisplay)); |
328 |
|
} |
329 |
|
|
330 |
|
|