Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpfcso!stroyan From: stroyan@hpfcso.HP.COM (Mike Stroyan) Newsgroups: comp.sys.hp Subject: Re: Help wanted - Starbase under X11 Message-ID: <7370101@hpfcso.HP.COM> Date: 9 Mar 90 01:22:03 GMT References: <77980@tut.cis.ohio-state.edu> Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 30 > Could anybody please set me on the right track? All I want to do is to bring > up a window under X11 using starbase and use the mouse and keyboard in a > shared mode. The "/dev/screen/pavi FIRST_MOUSE" string would be used to open the first mouse on the HP-HIL loop as an X extension input device. However that device is not available as an extension device because the X server is already using it as a pointer device. Instead, you can open the window name itself as an input device. That will use the X server pointer device for locator input and choice input. The X server keyboard device for can be used by the sox11 driver for another choice device. To use the sox11 driver try the following. if ((display = gopen("/dev/screen/pavi", OUTDEV, "hp98550", INIT)) == -1) exit(1); if ((input = gopen("/dev/screen/pavi", INDEV, "sox11", INIT)) == -1) gclose(display), exit(1); Now the mouse position will be locator ordinal 1 on "input". The mouse buttons are reported as button numbers on choice ordinal 1 and as a button state bitmask on choice ordinal 2. The keyboard will be choice ordinal 3. You could just open the window once with output and input as below, but the "hp98550" driver inputs from only the mouse and doesn't do input from the keyboard. if ((window = gopen("/dev/screen/pavi", OUTINDEV, "hp98550", INIT)) == -1) exit(1); Mike Stroyan, stroyan@hpfcla.hp.com