Panda3D
|
00001 // Filename: touchInfo.cxx 00002 // Created by: Walt Destler (May 25, 2010) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #include "touchInfo.h" 00016 00017 TouchInfo::TouchInfo(){ 00018 _x = 0; 00019 _y = 0; 00020 _id = 0; 00021 _flags = 0; 00022 } 00023 00024 int TouchInfo::get_x(){ 00025 return _x; 00026 } 00027 00028 int TouchInfo::get_y(){ 00029 return _y; 00030 } 00031 00032 int TouchInfo::get_id(){ 00033 return _id; 00034 } 00035 00036 int TouchInfo::get_flags(){ 00037 return _flags; 00038 } 00039 00040 void TouchInfo::set_x(int x){ 00041 _x = x; 00042 } 00043 00044 void TouchInfo::set_y(int y){ 00045 _y = y; 00046 } 00047 00048 void TouchInfo::set_id(int id){ 00049 _id = id; 00050 } 00051 00052 void TouchInfo::set_flags(int flags){ 00053 _flags = flags; 00054 }