1
/*----------------------------------------------------------------------
2
* (C) 1999 Spacetec IMC Corporation ("Spacetec").
4
* Permission to use, copy, modify, and distribute this software for all
5
* purposes and without fees is hereby granted provided that this copyright
6
* notice appears in all copies. Permission to modify this software is granted
7
* and Spacetec will support such modifications only if said modifications are
8
* approved by Spacetec.
12
#ifndef COIN_SPWINPUT_H
13
#define COIN_SPWINPUT_H
15
#define SPW_INPUT_MAJOR 7
16
#define SPW_INPUT_MINOR 6
17
#define SPW_INPUT_UPDATE 0
18
#define SPW_INPUT_BUILD 1
19
#define SPW_INPUT_VERSION "7.6.0.1"
20
#define SPW_INPUT_DATE _T("January 18, 1999")
25
SPW_InputMotionEvent=1, /* Event type is a motion event */
26
SPW_InputButtonPressEvent=2, /* Event type is a button press event */
27
SPW_InputButtonReleaseEvent=3 /* Event type is a button release event */
31
unsigned int old; /* The last state of the buttons */
32
unsigned int current; /* The current state of the buttons */
33
unsigned int pressed; /* Which buttons were pressed */
34
unsigned int released; /* Which buttons were released */
35
} SPW_InputButtonTable;
38
short int type; /* The type of event */
39
float fData[7]; /* The float Spaceball data */
40
short int sData[7]; /* The integer Spaceball data */
41
int buttonNumber; /* The button number for this event */
42
SPW_InputButtonTable buttonState; /* The state of the buttons */
43
char string[SPW_MAXBUF]; /* Extra data area */
46
/* These two methods should only be used under X */
47
int SPW_CheckForSpaceballX11(void * display, int winid, char * product);
48
int SPW_TranslateEventX11(void * display, void * xevent, SPW_InputEvent * sbEvent);
49
/* FIXME: add two similar methods for WIN32. pederb, 20001114 */
51
#endif /* COIN_SPWINPUT_H */