|
Blender V4.3
|
#include "GHOST_NDOFManager.hh"#include "GHOST_Debug.hh"#include "GHOST_EventKey.hh"#include "GHOST_EventNDOF.hh"#include "GHOST_Types.h"#include "GHOST_WindowManager.hh"#include "GHOST_utildefines.hh"#include "CLG_log.h"#include <algorithm>#include <array>#include <climits>#include <cmath>#include <cstring>#include <map>Go to the source code of this file.
Macros | |
| #define | HOME(foo) (ndof->foo == 0.0f) |
| #define | HOME(foo) (fabsf(ndof->foo) < threshold) |
Variables | |
NDOF Button Maps | |
| static const GHOST_NDOF_ButtonT | ndof_HID_map_Shared3Dx [] |
| static const GHOST_NDOF_ButtonT | ndof_HID_map_SpaceExplorer [] |
| static const GHOST_NDOF_ButtonT | ndof_HID_map_SpacePilot [] |
| static const GHOST_NDOF_ButtonT | ndof_HID_map_Generic [] |
NDOF Manager Class | |
| static const int | genericButtonCount = ARRAY_SIZE(ndof_HID_map_Generic) |
NDOF Device Setup | |
| static CLG_LogRef | LOG_NDOF_DEVICE = {"ghost.ndof.device"} |
NDOF Enum Strings | |
3Dconnexion keyboards and keypads use specific keys that have no standard equivalent. These could be supported as generic "custom" keys, see !124155 review for details. | |
| #define | MAP_ENTRY(button) |
| static const char * | ndof_progress_string [] |
| static const std::map< GHOST_NDOF_ButtonT, const char * > | ndof_button_names |
| static const char * | ndof_device_names [] |
NDOF Motion | |
| #define | LOG (&LOG_NDOF_DEVICE) |
| #define | LOG (&LOG_NDOF_BUTTONS) |
| #define | LOG (&LOG_NDOF_MOTION) |
| static CLG_LogRef | LOG_NDOF_MOTION = {"ghost.ndof.motion"} |
| static bool | atHomePosition (const GHOST_TEventNDOFMotionData *ndof) |
| static bool | nearHomePosition (const GHOST_TEventNDOFMotionData *ndof, float threshold) |
NDOF Buttons | |
| static CLG_LogRef | LOG_NDOF_BUTTONS = {"ghost.ndof.buttons"} |
| static GHOST_TKey | ghost_map_keyboard_from_ndof_buttom (const GHOST_NDOF_ButtonT button) |
| #define HOME | ( | foo | ) | (ndof->foo == 0.0f) |
Referenced by atHomePosition(), and nearHomePosition().
| #define LOG (&LOG_NDOF_DEVICE) |
Definition at line 239 of file GHOST_NDOFManager.cc.
| #define LOG (&LOG_NDOF_BUTTONS) |
Definition at line 239 of file GHOST_NDOFManager.cc.
| #define LOG (&LOG_NDOF_MOTION) |
Definition at line 239 of file GHOST_NDOFManager.cc.
| #define MAP_ENTRY | ( | button | ) |
Definition at line 43 of file GHOST_NDOFManager.cc.
|
static |
Definition at line 645 of file GHOST_NDOFManager.cc.
References HOME.
Referenced by nearHomePosition().
|
static |
Definition at line 404 of file GHOST_NDOFManager.cc.
References GHOST_kKeyDelete, GHOST_kKeyEnter, GHOST_kKeyEsc, GHOST_kKeyF1, GHOST_kKeyF10, GHOST_kKeyF11, GHOST_kKeyF12, GHOST_kKeyF2, GHOST_kKeyF3, GHOST_kKeyF4, GHOST_kKeyF5, GHOST_kKeyF6, GHOST_kKeyF7, GHOST_kKeyF8, GHOST_kKeyF9, GHOST_kKeyLeftAlt, GHOST_kKeyLeftControl, GHOST_kKeyLeftShift, GHOST_kKeySpace, GHOST_kKeyTab, GHOST_kKeyUnknown, GHOST_NDOF_BUTTON_ALT, GHOST_NDOF_BUTTON_CTRL, GHOST_NDOF_BUTTON_DELETE, GHOST_NDOF_BUTTON_ENTER, GHOST_NDOF_BUTTON_ESC, GHOST_NDOF_BUTTON_KBP_F1, GHOST_NDOF_BUTTON_KBP_F10, GHOST_NDOF_BUTTON_KBP_F11, GHOST_NDOF_BUTTON_KBP_F12, GHOST_NDOF_BUTTON_KBP_F2, GHOST_NDOF_BUTTON_KBP_F3, GHOST_NDOF_BUTTON_KBP_F4, GHOST_NDOF_BUTTON_KBP_F5, GHOST_NDOF_BUTTON_KBP_F6, GHOST_NDOF_BUTTON_KBP_F7, GHOST_NDOF_BUTTON_KBP_F8, GHOST_NDOF_BUTTON_KBP_F9, GHOST_NDOF_BUTTON_NP_F1, GHOST_NDOF_BUTTON_NP_F2, GHOST_NDOF_BUTTON_NP_F3, GHOST_NDOF_BUTTON_NP_F4, GHOST_NDOF_BUTTON_SHIFT, GHOST_NDOF_BUTTON_SPACE, and GHOST_NDOF_BUTTON_TAB.
Referenced by GHOST_NDOFManager::updateButton().
|
static |
Definition at line 652 of file GHOST_NDOFManager.cc.
References atHomePosition(), and HOME.
Referenced by GHOST_NDOFManager::sendMotionEvent().
|
static |
Definition at line 209 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::setDevice().
|
static |
Definition at line 401 of file GHOST_NDOFManager.cc.
|
static |
Definition at line 238 of file GHOST_NDOFManager.cc.
|
static |
Definition at line 630 of file GHOST_NDOFManager.cc.
|
static |
Definition at line 47 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::updateButton().
|
static |
Definition at line 118 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::setDevice().
|
static |
Definition at line 192 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::setDevice().
|
static |
Shared by the some 3Dconnexion hardware SpacePilotPro uses all of these SpaceMouse Pro and SpaceNavigator use only some, based on button mask.
Definition at line 145 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::setDevice().
|
static |
Definition at line 159 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::setDevice().
|
static |
Definition at line 178 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::setDevice().
|
static |
Definition at line 34 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::sendMotionEvent().