KiCad PCB EDA Suite
Loading...
Searching...
No Matches
spacemouse.h
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
#ifndef KICAD_SPACEMOUSE_H
22
#define KICAD_SPACEMOUSE_H
23
#include <wx/event.h>
24
25
// Define new events for SpaceMouse motion and button
26
wxDECLARE_EVENT
(EVT_SPACEMOUSE_MOTION, wxCommandEvent);
27
wxDECLARE_EVENT
(EVT_SPACEMOUSE_BUTTON, wxCommandEvent);
28
29
class
EDA_DRAW_PANEL_GAL
;
30
31
class
LINUX_SPACEMOUSE
32
{
33
public
:
34
LINUX_SPACEMOUSE
(
EDA_DRAW_PANEL_GAL
* parent);
35
~LINUX_SPACEMOUSE
();
36
37
private
:
38
EDA_DRAW_PANEL_GAL
*
m_parent
;
39
void
OnSpaceMouseMotion
();
40
void
OnSpaceMouseButton
();
41
};
42
43
#endif
// KICAD_SPACEMOUSE_H
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
wxDECLARE_EVENT
wxDECLARE_EVENT(EVT_SPACEMOUSE_MOTION, wxCommandEvent)
src
include
spacemouse.h
Generated on Sun Sep 21 2025 01:05:26 for KiCad PCB EDA Suite by
1.13.2