Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
putil
mouseButton.h
1
// Filename: mouseButton.h
2
// Created by: drose (01Mar00)
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 MOUSEBUTTON_H
16
#define MOUSEBUTTON_H
17
18
#include "pandabase.h"
19
20
#include "buttonHandle.h"
21
22
////////////////////////////////////////////////////////////////////
23
// Class : MouseButton
24
// Description : This class is just used as a convenient namespace for
25
// grouping all of these handy functions that return
26
// buttons which map to standard mouse buttons.
27
////////////////////////////////////////////////////////////////////
28
class
EXPCL_PANDA_PUTIL
MouseButton
{
29
PUBLISHED:
30
static
ButtonHandle
button(
int
button_number);
31
static
ButtonHandle
one();
32
static
ButtonHandle
two();
33
static
ButtonHandle
three();
34
static
ButtonHandle
four();
35
static
ButtonHandle
five();
36
static
ButtonHandle
wheel_up();
37
static
ButtonHandle
wheel_down();
38
static
ButtonHandle
wheel_left();
39
static
ButtonHandle
wheel_right();
40
41
static
bool
is_mouse_button(
ButtonHandle
button);
42
43
public
:
44
static
void
init_mouse_buttons();
45
46
enum
{ num_mouse_buttons = 5 };
47
static
ButtonHandle
_buttons[num_mouse_buttons];
48
static
ButtonHandle
_wheel_up;
49
static
ButtonHandle
_wheel_down;
50
static
ButtonHandle
_wheel_left;
51
static
ButtonHandle
_wheel_right;
52
};
53
54
#endif
MouseButton
This class is just used as a convenient namespace for grouping all of these handy functions that retu...
Definition:
mouseButton.h:28
ButtonHandle
A ButtonHandle represents a single button from any device, including keyboard buttons and mouse butto...
Definition:
buttonHandle.h:28
Generated on Mon Feb 1 2016 13:44:38 for Panda3D by
1.8.5