Back to index

salome-gui  6.5.0
SVTK_SpaceMouse.cxx File Reference
#include <string.h>
#include <math.h>
#include <stdio.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>
#include "SVTK_SpaceMouse.h"

Go to the source code of this file.


static int errorCallback (Display *display, XErrorEvent *Error)

Function Documentation

static int errorCallback ( Display *  display,
XErrorEvent *  Error 
) [static]

Definition at line 90 of file SVTK_SpaceMouse.cxx.

  char msg[ 128 ];
  if ( Error->error_code != BadWindow ) {
    XGetErrorText( display,Error->error_code,msg,sizeof( msg ) );
    fprintf( stderr, "SpaceMouse reported error = %s. Exit ... \n", msg );
  return 0;

Here is the caller graph for this function: