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