Panda3D
Loading...
Searching...
No Matches
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
16TouchInfo::TouchInfo(){
17 _x = 0;
18 _y = 0;
19 _id = 0;
20 _flags = 0;
21}
22
23int TouchInfo::get_x(){
24 return _x;
25}
26
27int TouchInfo::get_y(){
28 return _y;
29}
30
31int TouchInfo::get_id(){
32 return _id;
33}
34
35int TouchInfo::get_flags(){
36 return _flags;
37}
38
39void TouchInfo::set_x(int x){
40 _x = x;
41}
42
43void TouchInfo::set_y(int y){
44 _y = y;
45}
46
47void TouchInfo::set_id(int id){
48 _id = id;
49}
50
51void TouchInfo::set_flags(int flags){
52 _flags = flags;
53}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.