#include "Mouse3DController.hpp"#include <stdint.h>#include <dlfcn.h>#include <array>#include <boost/log/trivial.hpp>#include <cstdio>Go to the source code of this file.
Classes | |
| struct | ConnexionDeviceState |
Namespaces | |
| namespace | Slic3r |
| |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/ | |
| namespace | Slic3r::GUI |
Macros | |
| #define | kConnexionClientModeTakeOver 1 |
| #define | kConnexionMaskAxis 0x3f00 |
| #define | kConnexionMaskAll 0x3fff |
| #define | kConnexionMaskAllButtons 0xffffffff |
| #define | kConnexionCmdHandleButtons 2 |
| #define | kConnexionCmdHandleAxis 3 |
| #define | kConnexionCmdAppSpecific 10 |
| #define | kConnexionMsgDeviceState '3dSR' |
| #define | kConnexionCtlGetDeviceID '3did' |
| #define | DECLARE_FUNC(name) |
| #define | LOAD_FUNC(name) |
Typedefs | |
| typedef void(* | AddedHandler) (uint32_t) |
| typedef void(* | RemovedHandler) (uint32_t) |
| typedef void(* | MessageHandler) (uint32_t, uint32_t msg_type, void *msg_arg) |
| typedef int16_t(* | SetConnexionHandlers_ptr) (MessageHandler, AddedHandler, RemovedHandler, bool) |
| typedef int16_t(* | InstallConnexionHandlers_ptr) (MessageHandler, AddedHandler, RemovedHandler) |
| typedef void(* | CleanupConnexionHandlers_ptr) () |
| typedef uint16_t(* | RegisterConnexionClient_ptr) (uint32_t signature, const char *name, uint16_t mode, uint32_t mask) |
| typedef void(* | SetConnexionClientButtonMask_ptr) (uint16_t clientID, uint32_t buttonMask) |
| typedef void(* | UnregisterConnexionClient_ptr) (uint16_t clientID) |
| typedef int16_t(* | ConnexionClientControl_ptr) (uint16_t clientID, uint32_t message, int32_t param, int32_t *result) |
Functions | |
| DECLARE_FUNC (SetConnexionHandlers) | |
| DECLARE_FUNC (InstallConnexionHandlers) | |
| DECLARE_FUNC (CleanupConnexionHandlers) | |
| DECLARE_FUNC (RegisterConnexionClient) | |
| DECLARE_FUNC (SetConnexionClientButtonMask) | |
| DECLARE_FUNC (UnregisterConnexionClient) | |
| DECLARE_FUNC (ConnexionClientControl) | |
| static void * | load_func (void *module, const char *func_name) |
| static bool | load_driver_functions () |
| static void | unload_driver () |
| static void | DeviceAdded (uint32_t unused) |
| static void | DeviceRemoved (uint32_t unused) |
| static void | DeviceEvent (uint32_t unused, uint32_t msg_type, void *msg_arg) |
Variables | |
| static Slic3r::GUI::Mouse3DController * | mouse_3d_controller = nullptr |
| static uint16_t | clientID = 0 |
| static bool | driver_loaded = false |
| static bool | has_new_driver = false |
| static void * | module |
| struct ConnexionDeviceState |
| #define DECLARE_FUNC | ( | name | ) |
| #define kConnexionClientModeTakeOver 1 |
| #define kConnexionCmdAppSpecific 10 |
Referenced by DeviceEvent().
| #define kConnexionCmdHandleAxis 3 |
Referenced by DeviceEvent().
| #define kConnexionCmdHandleButtons 2 |
Referenced by DeviceEvent().
| #define kConnexionCtlGetDeviceID '3did' |
Referenced by DeviceAdded().
| #define kConnexionMaskAll 0x3fff |
| #define kConnexionMaskAllButtons 0xffffffff |
| #define kConnexionMaskAxis 0x3f00 |
| #define kConnexionMsgDeviceState '3dSR' |
Referenced by DeviceEvent().
| #define LOAD_FUNC | ( | name | ) |
Referenced by load_driver_functions().
| typedef void(* AddedHandler) (uint32_t) |
| typedef void(* CleanupConnexionHandlers_ptr) () |
| typedef int16_t(* ConnexionClientControl_ptr) (uint16_t clientID, uint32_t message, int32_t param, int32_t *result) |
| typedef int16_t(* InstallConnexionHandlers_ptr) (MessageHandler, AddedHandler, RemovedHandler) |
| typedef void(* MessageHandler) (uint32_t, uint32_t msg_type, void *msg_arg) |
| typedef uint16_t(* RegisterConnexionClient_ptr) (uint32_t signature, const char *name, uint16_t mode, uint32_t mask) |
| typedef void(* RemovedHandler) (uint32_t) |
| typedef void(* SetConnexionClientButtonMask_ptr) (uint16_t clientID, uint32_t buttonMask) |
| typedef int16_t(* SetConnexionHandlers_ptr) (MessageHandler, AddedHandler, RemovedHandler, bool) |
| typedef void(* UnregisterConnexionClient_ptr) (uint16_t clientID) |
| DECLARE_FUNC | ( | CleanupConnexionHandlers | ) |
| DECLARE_FUNC | ( | ConnexionClientControl | ) |
| DECLARE_FUNC | ( | InstallConnexionHandlers | ) |
| DECLARE_FUNC | ( | RegisterConnexionClient | ) |
| DECLARE_FUNC | ( | SetConnexionClientButtonMask | ) |
| DECLARE_FUNC | ( | SetConnexionHandlers | ) |
| DECLARE_FUNC | ( | UnregisterConnexionClient | ) |
|
static |
References clientID, kConnexionCtlGetDeviceID, and mouse_3d_controller.
|
static |
References ConnexionDeviceState::axis, ConnexionDeviceState::client, clientID, ConnexionDeviceState::command, kConnexionCmdAppSpecific, kConnexionCmdHandleAxis, kConnexionCmdHandleButtons, kConnexionMsgDeviceState, and mouse_3d_controller.
|
static |
References mouse_3d_controller.
|
static |
References driver_loaded, has_new_driver, LOAD_FUNC, and module.
|
static |
|
static |
Referenced by DeviceAdded(), and DeviceEvent().
|
static |
Referenced by load_driver_functions().
|
static |
Referenced by load_driver_functions().
|
static |
Referenced by StaticBambuLib::get(), get_function(), load_driver_functions(), load_func(), and unload_driver().
|
static |
Referenced by DeviceAdded(), DeviceEvent(), and DeviceRemoved().