Blender  V3.3
Macros | Functions | Variables
GHOST_NDOFManager.cpp File Reference
#include "GHOST_NDOFManager.h"
#include "GHOST_Debug.h"
#include "GHOST_EventKey.h"
#include "GHOST_EventNDOF.h"
#include "GHOST_WindowManager.h"
#include "GHOST_utildefines.h"
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>

Go to the source code of this file.

Macros

#define HOME(foo)   (ndof->foo == 0.0f)
 
#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 Modern3Dx_HID_map []
 
static const NDOF_ButtonT SpaceExplorer_HID_map []
 
static const NDOF_ButtonT SpacePilot_HID_map []
 
static const NDOF_ButtonT Generic_HID_map []
 
static const int genericButtonCount = ARRAY_SIZE(Generic_HID_map)
 

Macro Definition Documentation

◆ HOME [1/2]

#define HOME (   foo)    (ndof->foo == 0.0f)

◆ HOME [2/2]

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

Function Documentation

◆ atHomePosition()

static bool atHomePosition ( GHOST_TEventNDOFMotionData *  ndof)
static

Definition at line 393 of file GHOST_NDOFManager.cpp.

References HOME.

Referenced by nearHomePosition().

◆ nearHomePosition()

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

Definition at line 400 of file GHOST_NDOFManager.cpp.

References atHomePosition(), HOME, and threshold.

Referenced by GHOST_NDOFManager::sendMotionEvent().

Variable Documentation

◆ Generic_HID_map

const NDOF_ButtonT Generic_HID_map[]
static
Initial value:

Definition at line 117 of file GHOST_NDOFManager.cpp.

Referenced by GHOST_NDOFManager::setDevice().

◆ genericButtonCount

const int genericButtonCount = ARRAY_SIZE(Generic_HID_map)
static

Definition at line 132 of file GHOST_NDOFManager.cpp.

Referenced by GHOST_NDOFManager::setDevice().

◆ Modern3Dx_HID_map

const NDOF_ButtonT Modern3Dx_HID_map[]
static
Initial value:
= {
@ NDOF_BUTTON_SHIFT
@ NDOF_BUTTON_ESC
@ NDOF_BUTTON_ALT
@ NDOF_BUTTON_CTRL
@ NDOF_BUTTON_MENU
@ NDOF_BUTTON_BOTTOM
@ NDOF_BUTTON_BACK
@ NDOF_BUTTON_RIGHT
@ NDOF_BUTTON_ROLL_CW
@ NDOF_BUTTON_10
@ NDOF_BUTTON_PLUS
@ NDOF_BUTTON_ISO2
@ NDOF_BUTTON_PANZOOM
@ NDOF_BUTTON_MINUS
@ NDOF_BUTTON_DOMINANT
@ NDOF_BUTTON_LEFT
@ NDOF_BUTTON_FIT
@ NDOF_BUTTON_FRONT
@ NDOF_BUTTON_ISO1
@ NDOF_BUTTON_TOP
@ NDOF_BUTTON_ROTATE
@ NDOF_BUTTON_ROLL_CCW

Definition at line 78 of file GHOST_NDOFManager.cpp.

Referenced by GHOST_NDOFManager::setDevice().

◆ SpaceExplorer_HID_map

const NDOF_ButtonT SpaceExplorer_HID_map[]
static

◆ SpacePilot_HID_map

const NDOF_ButtonT SpacePilot_HID_map[]
static