![]() |
Blender V2.61 - r43446
|
#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 HOME | ( | foo | ) | (ndof->foo == 0.f) |
Referenced by atHomePosition(), and nearHomePosition().
| #define HOME | ( | foo | ) | (fabsf(ndof->foo) < threshold) |
| static bool atHomePosition | ( | GHOST_TEventNDOFMotionData * | ndof | ) | [static] |
Definition at line 374 of file GHOST_NDOFManager.cpp.
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().
const NDOF_ButtonT SpaceExplorer_HID_map[] [static] |
{
NDOF_BUTTON_1,
NDOF_BUTTON_2,
NDOF_BUTTON_TOP,
NDOF_BUTTON_LEFT,
NDOF_BUTTON_RIGHT,
NDOF_BUTTON_FRONT,
NDOF_BUTTON_NONE,
NDOF_BUTTON_NONE,
NDOF_BUTTON_NONE,
NDOF_BUTTON_NONE,
NDOF_BUTTON_FIT,
NDOF_BUTTON_MENU,
NDOF_BUTTON_PLUS,
NDOF_BUTTON_MINUS,
NDOF_BUTTON_ROTATE
}
Definition at line 88 of file GHOST_NDOFManager.cpp.
Referenced by GHOST_NDOFManager::updateButton().
const NDOF_ButtonT SpaceNavigator_HID_map[] [static] |
Definition at line 83 of file GHOST_NDOFManager.cpp.
Referenced by GHOST_NDOFManager::updateButton().
const NDOF_ButtonT SpacePilot_HID_map[] [static] |
{
NDOF_BUTTON_1,
NDOF_BUTTON_2,
NDOF_BUTTON_3,
NDOF_BUTTON_4,
NDOF_BUTTON_5,
NDOF_BUTTON_6,
NDOF_BUTTON_TOP,
NDOF_BUTTON_LEFT,
NDOF_BUTTON_RIGHT,
NDOF_BUTTON_FRONT,
NDOF_BUTTON_NONE,
NDOF_BUTTON_NONE,
NDOF_BUTTON_NONE,
NDOF_BUTTON_NONE,
NDOF_BUTTON_FIT,
NDOF_BUTTON_MENU,
NDOF_BUTTON_PLUS,
NDOF_BUTTON_MINUS,
NDOF_BUTTON_DOMINANT,
NDOF_BUTTON_ROTATE,
NDOF_BUTTON_NONE
}
Definition at line 142 of file GHOST_NDOFManager.cpp.
Referenced by GHOST_NDOFManager::updateButton().
const NDOF_ButtonT SpacePilotPro_HID_map[] [static] |
Definition at line 106 of file GHOST_NDOFManager.cpp.
Referenced by GHOST_NDOFManager::updateButton().