|
Blender V5.0
|
#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) |
| #define | HOME(foo) |
Functions | |
NDOF Buttons | |
| static GHOST_TKey | ghost_map_keyboard_from_ndof_button (const GHOST_NDOF_ButtonT button) |
NDOF Motion | |
| static bool | atHomePosition (const GHOST_TEventNDOFMotionData *ndof) |
| static bool | nearHomePosition (const GHOST_TEventNDOFMotionData *ndof, float threshold) |
Variables | |
| static CLG_LogRef | LOG = {"ghost.ndof"} |
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 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 [] |
| #define HOME | ( | foo | ) |
| #define HOME | ( | foo | ) |
Referenced by atHomePosition(), and nearHomePosition().
| #define MAP_ENTRY | ( | button | ) |
Definition at line 44 of file GHOST_NDOFManager.cc.
|
static |
Definition at line 647 of file GHOST_NDOFManager.cc.
References HOME.
Referenced by nearHomePosition().
|
static |
Definition at line 394 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 654 of file GHOST_NDOFManager.cc.
References atHomePosition(), and HOME.
Referenced by GHOST_NDOFManager::sendMotionEvent().
|
static |
Definition at line 207 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::GHOST_NDOFManager(), and GHOST_NDOFManager::setDevice().
|
static |
Definition at line 22 of file GHOST_NDOFManager.cc.
|
static |
Definition at line 45 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::updateButton().
|
static |
Definition at line 116 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::setDevice().
|
static |
Definition at line 190 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::GHOST_NDOFManager(), and 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 143 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::setDevice().
|
static |
Definition at line 157 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::setDevice().
|
static |
Definition at line 176 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::setDevice().
|
static |
Definition at line 35 of file GHOST_NDOFManager.cc.
Referenced by GHOST_NDOFManager::sendMotionEvent().