author | František Kučera <franta-hg@frantovo.cz> |
Thu, 14 Mar 2019 16:11:08 +0100 | |
branch | v_0 |
changeset 2 | a27850958a67 |
child 3 | 42d64bd73232 |
permissions | -rw-r--r-- |
2
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
/** |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
* Spacenav Demo Qt |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
* Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
* |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
* This program is free software: you can redistribute it and/or modify |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License as published by |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
* the Free Software Foundation, either version 3 of the License, or |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
* (at your option) any later version. |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
* |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
* This program is distributed in the hope that it will be useful, |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
* GNU General Public License for more details. |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
* |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
*/ |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
#pragma once |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
|
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
class ButtonEvent { |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
public: |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
int number; |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
bool pressed; |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
|
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
ButtonEvent(int number, bool pressed) : |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
number(number), pressed(pressed) { |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
} |
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
28 |
|
a27850958a67
emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
}; |