1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
/*
* spaceball.h - prototypes and definitions for Tachyon
* Spaceball/SpaceNavigator interfaces
*
* $Id: spaceball.h,v 1.4 2011/02/02 06:10:39 johns Exp $
*/
#if defined(USESPACEBALL)
#include "sball.h"
#endif
typedef struct {
void *glwin;
#if defined(USESPACEBALL)
SBallHandle sball;
#endif
int buttondown;
apivector camcent;
apivector camviewvec;
apivector camupvec;
apivector orig_camcent;
apivector orig_camviewvec;
apivector orig_camupvec;
apivector orig_camrightvec;
float curtrans[3];
float newtrans[3];
float curquat[4];
float lastquat[4];
} sbHandle;
void * tachyon_init_spaceball(SceneHandle scene, void * glwin, char * port);
int tachyon_spaceball_update(sbHandle * bh, SceneHandle scene);
|