KiCad PCB EDA Suite
Loading...
Searching...
No Matches
spacemouse.cpp
Go to the documentation of this file.
1
/*
2
*
3
* This file is part of KiCad, a free EDA CAD application.
4
*
5
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#include "
spacemouse.h
"
22
#include <wx/event.h>
23
24
#include <
class_draw_panel_gal.h
>
25
26
LINUX_SPACEMOUSE::LINUX_SPACEMOUSE
(
EDA_DRAW_PANEL_GAL
* parent)
27
:
m_parent
(parent)
28
{
29
m_parent
->Bind( EVT_SPACEMOUSE_MOTION, &
LINUX_SPACEMOUSE::OnSpaceMouseMotion
);
30
m_parent
->Bind( EVT_SPACEMOUSE_BUTTON, &
LINUX_SPACEMOUSE::OnSpaceMouseButton
);
31
}
32
33
LINUX_SPACEMOUSE::~LINUX_SPACEMOUSE
()
34
{
35
m_parent
->Unbind( EVT_SPACEMOUSE_MOTION, &
LINUX_SPACEMOUSE::OnSpaceMouseMotion
);
36
m_parent
->Unbind( EVT_SPACEMOUSE_BUTTON, &
LINUX_SPACEMOUSE::OnSpaceMouseButton
);
37
}
38
39
void
LINUX_SPACEMOUSE::OnSpaceMouseMotion
()
40
{
41
// Handle SpaceMouse motion event
42
}
43
44
void
LINUX_SPACEMOUSE::OnSpaceMouseButton
()
45
{
46
// Handle SpaceMouse button event
47
}
48
EDA_DRAW_PANEL_GAL
Definition
class_draw_panel_gal.h:61
LINUX_SPACEMOUSE::OnSpaceMouseMotion
void OnSpaceMouseMotion()
Definition
spacemouse.cpp:39
LINUX_SPACEMOUSE::LINUX_SPACEMOUSE
LINUX_SPACEMOUSE(EDA_DRAW_PANEL_GAL *parent)
Definition
spacemouse.cpp:26
LINUX_SPACEMOUSE::~LINUX_SPACEMOUSE
~LINUX_SPACEMOUSE()
Definition
spacemouse.cpp:33
LINUX_SPACEMOUSE::m_parent
EDA_DRAW_PANEL_GAL * m_parent
Definition
spacemouse.h:38
LINUX_SPACEMOUSE::OnSpaceMouseButton
void OnSpaceMouseButton()
Definition
spacemouse.cpp:44
class_draw_panel_gal.h
spacemouse.h
src
common
spacemouse.cpp
Generated on Sun Sep 21 2025 01:05:21 for KiCad PCB EDA Suite by
1.13.2