~ubuntu-branches/ubuntu/oneiric/soqt/oneiric

« back to all changes in this revision

Viewing changes to build/msvc6/src/Inventor/Qt/devices/spwinput.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2006-02-06 22:34:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060206223400-g69m5soqa4zh0gkc
Tags: 1.3.0-3
debian/control: update libsoqt-dev depends.  Closes: #351700.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*----------------------------------------------------------------------
 
2
 * (C) 1999 Spacetec IMC Corporation ("Spacetec").
 
3
 *
 
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.
 
9
 *
 
10
 */
 
11
 
 
12
#ifndef COIN_SPWINPUT_H
 
13
#define COIN_SPWINPUT_H
 
14
 
 
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")
 
21
 
 
22
#define SPW_MAXBUF 80
 
23
 
 
24
typedef enum {
 
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 */
 
28
} SPW_InputEventType;
 
29
 
 
30
typedef struct {
 
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;
 
36
 
 
37
typedef struct {
 
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 */
 
44
} SPW_InputEvent;
 
45
 
 
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 */
 
50
 
 
51
#endif /* COIN_SPWINPUT_H */