14#ifndef MODIFIERBUTTONS_H
15#define MODIFIERBUTTONS_H
26class EXPCL_PANDA_PUTIL ModifierButtons {
29 ModifierButtons(
const ModifierButtons ©);
31 INLINE
void operator = (
const ModifierButtons ©);
33 INLINE
bool operator == (
const ModifierButtons &other)
const;
34 INLINE
bool operator != (
const ModifierButtons &other)
const;
35 INLINE
bool operator < (
const ModifierButtons &other)
const;
37 INLINE ModifierButtons operator & (
const ModifierButtons &other)
const;
38 INLINE ModifierButtons operator | (
const ModifierButtons &other)
const;
40 void operator &= (
const ModifierButtons &other);
41 void operator |= (
const ModifierButtons &other);
45 bool matches(
const ModifierButtons &other)
const;
61 INLINE
bool is_down(
int index)
const;
66 void output(std::ostream &out)
const;
67 void write(std::ostream &out)
const;
70 void modify_button_list();
73 typedef unsigned long BitmaskType;
77INLINE std::ostream &operator << (std::ostream &out,
const ModifierButtons &mb) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.