17 INLINE
void ModifierButtons::
19 _button_list = copy._button_list;
31 return (_button_list == other._button_list &&
32 _state == other._state);
38 INLINE
bool ModifierButtons::
46 INLINE
bool ModifierButtons::
48 if (_button_list != other._button_list) {
49 return _button_list < other._button_list;
51 return _state < other._state;
85 INLINE
int ModifierButtons::
86 get_num_buttons()
const {
87 return _button_list.size();
97 nassertr(index >= 0 && index < (
int)_button_list.size(), ButtonHandle::none());
98 return _button_list[index];
115 nassertr(index >= 0 && index < (
int)_button_list.size(),
false);
116 return ((_state & ((BitmaskType)1 << index)) != 0);