Tachyon (current)  Current Main Branch
spaceball.h
Go to the documentation of this file.
1 /*
2  * spaceball.h - prototypes and definitions for Tachyon
3  * Spaceball/SpaceNavigator interfaces
4  *
5  * (C) Copyright 1994-2022 John E. Stone
6  * SPDX-License-Identifier: BSD-3-Clause
7  *
8  * $Id: spaceball.h,v 1.5 2022/02/18 18:18:36 johns Exp $
9  *
10  */
11 
12 #if defined(USESPACEBALL)
13 #include "sball.h"
14 #endif
15 
16 typedef struct {
17  void *glwin;
18 #if defined(USESPACEBALL)
19  SBallHandle sball;
20 #endif
22 
26 
31 
32  float curtrans[3];
33  float newtrans[3];
34  float curquat[4];
35  float lastquat[4];
36 } sbHandle;
37 
38 void * tachyon_init_spaceball(SceneHandle scene, void * glwin, char * port);
40 
41 
apivector orig_camupvec
Definition: spaceball.h:29
void * tachyon_init_spaceball(SceneHandle scene, void *glwin, char *port)
Definition: spaceball.c:28
apivector orig_camviewvec
Definition: spaceball.h:28
apivector camcent
Definition: spaceball.h:23
apivector orig_camcent
Definition: spaceball.h:27
void * glwin
Definition: spaceball.h:17
void * SceneHandle
Definition: tachyon.h:51
int tachyon_spaceball_update(sbHandle *bh, SceneHandle scene)
Definition: spaceball.c:60
apivector camviewvec
Definition: spaceball.h:24
apivector camupvec
Definition: spaceball.h:25
int buttondown
Definition: spaceball.h:21
apivector orig_camrightvec
Definition: spaceball.h:30