Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
display
touchInfo.h
1
// Filename: touchInfo.h
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
#ifndef TOUCHINFO_H
16
#define TOUCHINFO_H
17
18
#include "pandabase.h"
19
20
////////////////////////////////////////////////////////////////////
21
// Class : TouchInfo
22
// Description : Stores information for a single touch event.
23
////////////////////////////////////////////////////////////////////
24
class
EXPCL_PANDA_DISPLAY
TouchInfo
{
25
26
PUBLISHED:
27
enum
TouchInfoFlags
28
{
29
TIF_move = 0x0001,
30
TIF_down = 0x0002,
31
TIF_up = 0x0004,
32
};
33
34
public
:
35
36
TouchInfo
();
37
38
void
set_x(
int
x);
39
void
set_y(
int
y);
40
void
set_id(
int
id
);
41
void
set_flags(
int
flags);
42
43
PUBLISHED:
44
45
int
get_x();
46
int
get_y();
47
int
get_id();
48
int
get_flags();
49
50
private
:
51
52
int
_x;
53
int
_y;
54
int
_id;
55
int
_flags;
56
};
57
58
#endif
TouchInfo
Stores information for a single touch event.
Definition:
touchInfo.h:24
Generated on Mon Feb 1 2016 13:44:20 for Panda3D by
1.8.5