Panda3D
panda
src
display
touchInfo.cxx
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file touchInfo.cxx
10
* @author Walt Destler
11
* @date 2010-05-25
12
*/
13
14
#include "
touchInfo.h
"
15
16
TouchInfo::TouchInfo(){
17
_x = 0;
18
_y = 0;
19
_id = 0;
20
_flags = 0;
21
}
22
23
int
TouchInfo::get_x(){
24
return
_x;
25
}
26
27
int
TouchInfo::get_y(){
28
return
_y;
29
}
30
31
int
TouchInfo::get_id(){
32
return
_id;
33
}
34
35
int
TouchInfo::get_flags(){
36
return
_flags;
37
}
38
39
void
TouchInfo::set_x(
int
x){
40
_x = x;
41
}
42
43
void
TouchInfo::set_y(
int
y){
44
_y = y;
45
}
46
47
void
TouchInfo::set_id(
int
id
){
48
_id = id;
49
}
50
51
void
TouchInfo::set_flags(
int
flags){
52
_flags = flags;
53
}
touchInfo.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Wed Jan 23 2019 21:39:55 for Panda3D by
1.8.15