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
25
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
34{
35 m_parent->Unbind( EVT_SPACEMOUSE_MOTION, &LINUX_SPACEMOUSE::OnSpaceMouseMotion );
36 m_parent->Unbind( EVT_SPACEMOUSE_BUTTON, &LINUX_SPACEMOUSE::OnSpaceMouseButton );
37}
38
40{
41 // Handle SpaceMouse motion event
42}
43
45{
46 // Handle SpaceMouse button event
47}
48
void OnSpaceMouseMotion()
LINUX_SPACEMOUSE(EDA_DRAW_PANEL_GAL *parent)
EDA_DRAW_PANEL_GAL * m_parent
Definition spacemouse.h:38
void OnSpaceMouseButton()