Blender V2.61 - r43446
Defines | Functions | Variables

GHOST_NDOFManager.cpp File Reference

#include "GHOST_Debug.h"
#include "GHOST_NDOFManager.h"
#include "GHOST_EventNDOF.h"
#include "GHOST_EventKey.h"
#include "GHOST_WindowManager.h"
#include <string.h>
#include <stdio.h>
#include <math.h>

Go to the source code of this file.

Defines

#define HOME(foo)   (ndof->foo == 0.f)
#define HOME(foo)   (fabsf(ndof->foo) < threshold)

Functions

static bool atHomePosition (GHOST_TEventNDOFMotionData *ndof)
static bool nearHomePosition (GHOST_TEventNDOFMotionData *ndof, float threshold)

Variables

static const NDOF_ButtonT SpaceNavigator_HID_map []
static const NDOF_ButtonT SpaceExplorer_HID_map []
static const NDOF_ButtonT SpacePilotPro_HID_map []
static const NDOF_ButtonT SpacePilot_HID_map []

Define Documentation

#define HOME (   foo)    (ndof->foo == 0.f)

Referenced by atHomePosition(), and nearHomePosition().

#define HOME (   foo)    (fabsf(ndof->foo) < threshold)

Function Documentation

static bool atHomePosition ( GHOST_TEventNDOFMotionData ndof) [static]

Definition at line 374 of file GHOST_NDOFManager.cpp.

References HOME, and tz.

Referenced by nearHomePosition().

static bool nearHomePosition ( GHOST_TEventNDOFMotionData ndof,
float  threshold 
) [static]

Definition at line 381 of file GHOST_NDOFManager.cpp.

References atHomePosition(), HOME, and tz.

Referenced by GHOST_NDOFManager::sendMotionEvent().


Variable Documentation

Initial value:

Definition at line 83 of file GHOST_NDOFManager.cpp.

Referenced by GHOST_NDOFManager::updateButton().

const NDOF_ButtonT SpacePilot_HID_map[] [static]

Definition at line 106 of file GHOST_NDOFManager.cpp.

Referenced by GHOST_NDOFManager::updateButton().