src/MotionEvent.h
author František Kučera <franta-hg@frantovo.cz>
Thu, 24 Oct 2019 21:51:08 +0200
branchv_0
changeset 10 da93f3667a52
parent 2 a27850958a67
permissions -rw-r--r--
fix license version: GNU GPLv3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
10
da93f3667a52 fix license version: GNU GPLv3
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
     7
 * the Free Software Foundation, version 3 of the License.
2
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 *
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 * 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
    10
 * 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
    11
 * 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
    12
 * GNU General Public License for more details.
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 *
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 * 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
    15
 * 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
    16
 */
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
#pragma once
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
class MotionEvent {
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
public:
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
	int x;
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
	int y;
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
	int z;
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
	int rx;
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
	int ry;
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
	int rz;
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
	int type;
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
	unsigned int period;
a27850958a67 emit button and motion events
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
};