Daniela Rainer (zrgr0390++at++awssg7.rus.uni-stuttgart.de)
Mon, 25 Mar 1996 15:59:10 +0000
is it possible to integrate a spaceball in pfuInput? I want to use the
spaceball and a mouse in the same application. If I call pfuInitInput(pwin,
PFUINPUT_X) before I initialize the spaceball with X11/extensions/XInput.h, I
get
GL: X error 10, X request = 2
ERROR #93 Error in communication with window server: ERR_WMANIPC
My spaceball-init-function looks like this:
XSelectInput(display, xwin, ButtonPressMask | KeyPressMask |KeyReleaseMask |
ExposureMask);
list = (XDeviceInfoPtr) XListInputDevices(display, &ndevices);
for(i = 0; i < ndevices; i++)
{
if (strcmp(list[i].name, "spaceball") == NULL)
{
spaceball_device = XOpenDevice(display, list[i].id);
}
}
DeviceMotionNotify(spaceball_device,spaceball_ball_event_type,
spaceball_ball_event_class);
ListOfEventClass[0] = spaceball_ball_event_class;
DeviceButtonPress(spaceball_device,spaceball_button_press_event_type,
spaceball_button_press_event_class);
ListOfEventClass[1]=spaceball_button_press_event_class;
DeviceButtonRelease(spaceball_device, spaceball_button_release_event_type,
spaceball_button_release_event_class);
ListOfEventClass[2]=spaceball_button_release_event_class;
XSelectExtensionEvent(display, xwin, ListOfEventClass,3);
Thanks for any help
Daniela
-- Daniela Rainer rainer++at++rus.uni-stuttgart.de
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:35 PDT